Skip to content

Commit 28452aa

Browse files
fix url for find / search users with query
1 parent acc9e22 commit 28452aa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

components/jira/actions/get-users/get-users.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import jira from "../../jira.app.mjs";
33
export default {
44
key: "jira-get-users",
55
name: "Get Users",
6-
description: "Gets details of a list of users. [See docs here](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-users-search-get)",
7-
version: "0.0.4",
6+
description: "Gets details of a list of users. [See docs here](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-get)",
7+
version: "0.0.5",
88
type: "action",
99
props: {
1010
jira,
@@ -22,7 +22,7 @@ export default {
2222
},
2323
},
2424
async run({ $ }) {
25-
const response = await this.jira.getUsers({
25+
const response = await this.jira.findUsers({
2626
$,
2727
cloudId: this.cloudId,
2828
params: {

components/jira/jira.app.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export default {
124124
}) {
125125
let { startAt } = prevContext || {};
126126
const pageSize = 50;
127-
const resp = await this.getUsers({
127+
const resp = await this.findUsers({
128128
cloudId,
129129
params: {
130130
startAt,
@@ -352,7 +352,7 @@ export default {
352352
});
353353
if (response?.webhookRegistrationResult[0]?.errors) {
354354
throw new ConfigurationError(`Cannot create the webhook trigger because Jira only allows one active webhook at a time. This is most likely because you have an existing Jira webhook running in another workflow. You can reuse your existing source in your workflow or deactivate the existing source and try again.
355-
355+
356356
Error detail:
357357
Could not create trigger(s). ${response.webhookRegistrationResult[0].errors}`);
358358
}
@@ -447,9 +447,9 @@ export default {
447447
...args,
448448
});
449449
},
450-
getUsers(args = {}) {
450+
findUsers(args = {}) {
451451
return this._makeRequest({
452-
path: "/users/search",
452+
path: "/user/search",
453453
...args,
454454
});
455455
},

0 commit comments

Comments
 (0)