Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "jira-add-attachment-to-issue",
name: "Add Attachment To Issue",
description: "Adds an attachment to an issue, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-issue-issueidorkey-attachments-post)",
version: "0.2.4",
version: "0.2.5",
type: "action",
props: {
jira,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "jira-add-comment-to-issue",
name: "Add Comment To Issue",
description: "Adds a new comment to an issue, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments/#api-rest-api-3-issue-issueidorkey-comment-post)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "jira-add-multiple-attachments-to-issue",
name: "Add Multiple Attachments To Issue",
description: "Adds multiple attachments to an issue, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-issue-issueidorkey-attachments-post)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
jira,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import jira from "../../jira.app.mjs";
export default {
key: "jira-add-watcher-to-issue",
name: "Add Watcher To Issue",
version: "0.0.1",
version: "0.0.2",
description: "Adds a user as a watcher of an issue by passing the account ID of the user, For example, `5b10ac8d82e05b22cc7d4ef5`, If no user is specified the calling user is added. [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-watchers/#api-rest-api-3-issue-issueidorkey-watchers-post)",
type: "action",
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/jira/actions/assign-issue/assign-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import jira from "../../jira.app.mjs";
export default {
key: "jira-assign-issue",
name: "Assign Issue",
version: "0.0.1",
version: "0.0.2",
description: "Assigns an issue to a user. [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-assignee-put)",
type: "action",
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/jira/actions/create-issue/create-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "jira-create-issue",
name: "Create Issue",
description: "Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-issue-post)",
version: "0.1.5",
version: "0.1.6",
type: "action",
props: {
jira,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/actions/create-version/create-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-create-version",
name: "Create Jira Version in project",
description: "Creates a project version., [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/#api-rest-api-3-version-post)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/actions/delete-project/delete-project.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-delete-project",
name: "Delete Project",
description: "Deletes a project, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-projectidorkey-delete)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-get-all-projects",
name: "JIRA - Get All Projects",
description: "Gets metadata on all projects, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-project-get)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/actions/get-issue/get-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-get-issue",
name: "Get Issue",
description: "Gets the details for an issue. [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/actions/get-task/get-task.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-get-task",
name: "Get Task",
description: "Gets the status of a long-running asynchronous task, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-tasks/#api-rest-api-3-task-taskid-get)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-get-transitions",
name: "Get Transitions",
description: "Gets either all transitions or a transition that can be performed by the user on an issue, based on the issue's status, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-get)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/actions/get-user/get-user.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-get-user",
name: "Get User",
description: "Gets details of user, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-get)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-list-issue-comments",
name: "List Issue Comments",
description: "Lists all comments for an issue, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments/#api-rest-api-3-issue-issueidorkey-comment-get)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/actions/make-api-call/make-api-call.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-make-api-call",
name: "Make API Call",
description: "Makes an aribitrary call to Jira API, [See](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/) for all options.",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "jira-transition-issue",
name: "Transition Issue",
description: "Performs an issue transition and, if the transition has a screen, updates the fields from the transition screen, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post)",
version: "0.1.4",
version: "0.1.5",
type: "action",
props: {
jira,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/actions/update-comment/update-comment.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "jira-update-comment",
name: "Update Comment",
description: "Updates a comment, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments/#api-rest-api-3-issue-issueidorkey-comment-id-put)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
jira,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/actions/update-issue/update-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "jira-update-issue",
name: "Update Issue",
description: "Updates an issue. A transition may be applied and issue properties updated as part of the edit, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put)",
version: "0.2.0",
version: "0.2.1",
type: "action",
props: {
jira,
Expand Down
42 changes: 31 additions & 11 deletions components/jira/jira.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,29 @@ export default {
type: "string",
label: "Project ID",
description: "The project ID.",
async options({ prevContext }) {
const { startAt } = prevContext || {};
useQuery: true,
async options({
prevContext, query,
}) {
let { startAt } = prevContext || {};
const pageSize = 50;
const resp = await this.getAllProjects({
params: {
startAt,
maxResults: pageSize,
query,
},
});
startAt = startAt > 0
? startAt + pageSize
: pageSize;
return {
options: resp?.values.map((e) => ({
label: e.name,
value: e.id,
})),
context: {
after: startAt,
startAt,
},
};
},
Expand Down Expand Up @@ -58,45 +65,55 @@ export default {
label: "Issue id or key",
description: "The ID or key of the issue where the attachment will be added to.",
async options({ prevContext }) {
const { startAt } = prevContext || {};
let { startAt } = prevContext || {};
const pageSize = 50;
const resp = await this.getIssues({
params: {
startAt,
maxResults: pageSize,
},
});
startAt = startAt > 0
? startAt + pageSize
: pageSize;
return {
options: resp?.issues?.map((issue) => ({
value: issue.id,
label: issue.key,
})),
context: {
after: startAt,
startAt,
},
};
},
},
accountId: {
type: "string",
label: "Assignee Id",
description: "The account ID of the user, which uniquely identifies the user across all Atlassian products, For example, `5b10ac8d82e05b22cc7d4ef5`, ",
async options({ prevContext }) {
const { startAt } = prevContext || {};
description: "The account ID of the user, which uniquely identifies the user across all Atlassian products, For example, `5b10ac8d82e05b22cc7d4ef5`",
useQuery: true,
async options({
prevContext, query,
}) {
let { startAt } = prevContext || {};
const pageSize = 50;
const resp = await this.getUsers({
params: {
startAt,
maxResults: pageSize,
query,
},
});
startAt = startAt > 0
? startAt + pageSize
: pageSize;
return {
options: resp?.map((user) => ({
value: user.accountId,
label: user.displayName,
})),
context: {
after: startAt,
startAt,
},
};
},
Expand Down Expand Up @@ -132,7 +149,7 @@ export default {
async options({
prevContext, issueIdOrKey,
}) {
const { startAt } = prevContext || {};
let { startAt } = prevContext || {};
const pageSize = 50;
const resp = await this.getTransitions({
issueIdOrKey,
Expand All @@ -141,13 +158,16 @@ export default {
maxResults: pageSize,
},
});
startAt = startAt > 0
? startAt + pageSize
: pageSize;
return {
options: resp?.transitions?.map((issue) => ({
value: issue.id,
label: issue.name,
})),
context: {
after: startAt,
startAt,
},
};
},
Expand Down
2 changes: 1 addition & 1 deletion components/jira/sources/events/events.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "jira-events",
name: "New Event",
description: "Emit new event when an event with subscribed event source triggered, [See the docs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-webhooks/#api-rest-api-3-webhook-post)",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
...common,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/sources/issue-created/issue-created.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-issue-created",
name: "New Issue Created Event",
description: "Emit new event when an issue is created. Note that Jira supports only one webhook, if more sources are needed please use `New Event` source and select multiple events.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
...common,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/sources/issue-deleted/issue-deleted.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-issue-deleted",
name: "New Issue Deleted Event",
description: "Emit new event when an issue is deleted. Note that Jira supports only one webhook, if more sources are needed please use `New Event` source and select multiple events.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
...common,
Expand Down
2 changes: 1 addition & 1 deletion components/jira/sources/issue-updated/issue-updated.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "jira-issue-updated",
name: "New Issue Updated Event",
description: "Emit new event when an issue is updated. Note that Jira supports only one webhook, if more sources are needed please use `New Event` source and select multiple events.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
...common,
Expand Down