Jira v2
Jira tickets and service desk requests
Create, update, search and transition Jira Cloud issues, and work with Jira Service Management requests and queues.
jirav2_1.0.2.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Create, search, update and transition issues in Jira Cloud, and work with requests and queues in Jira Service Management, from FortiSOAR playbooks.
It works with scoped API tokens (routed through api.atlassian.com, with the cloud id looked up for you)
as well as the usual email and API token, and with Bearer / OAuth 2.0. The health check calls GET /myself,
so it passes on a site with no projects and names Jira's own error when it fails. Search takes any bounded
JQL and can fetch every page; create takes an issue type by name or id; one action can comment and move an
issue to a new status, and lists the transitions that are available when the one you asked for is not.
Service desks, request types, requests, request comments and queues are covered for Jira Service
Management, and Execute an API Request calls any other endpoint with the configured credentials.
Project, user, issue type, link type, service desk, request type and queue dropdowns fill in live, showing names while the action resolves them to keys and ids when it runs. Four sample playbooks cover creating a ticket, commenting and transitioning, polling for updated tickets, and opening a service desk request. Every action has an offline test.
Configuration · 7 fields
- Server URL
server_urltext requiredYour Jira Cloud site, for example https://yourcompany.atlassian.net. For a scoped API token either tick "Scoped API Token" below, or enter https://api.atlassian.com/ex/jira/<cloudId> here.
- Authentication
auth_typeselect requiredBasic: the Atlassian account email as Username and an API token as API Token. Bearer: an OAuth 2.0 access token, sent as-is; Username is ignored.
Options Basic (Email + API Token)Bearer (OAuth 2.0 Access Token)When Authentication is Basic (Email + API Token)
- Username
usernametext requiredThe Atlassian account email address the API token was created under (not the token name). Not used for Bearer authentication.
- API Token
tokenpassword requiredThe API token (Basic) or access token (Bearer).
- Scoped API Token
scopedcheckboxTick this when the token was created with scopes. Requests are then routed through https://api.atlassian.com/ex/jira/<cloudId>, which is the only place Atlassian accepts a scoped token. An unrestricted token does not need it.
- Cloud ID
cloud_idtext(Optional) The site's cloud id, used only with "Scoped API Token". Left empty, it is looked up from <Server URL>/_edge/tenant_info.
- Timeout (seconds)
timeoutintegerSeconds to wait for each request. Defaults to 30.
Default
30 - Verify SSL
verify_sslcheckboxSpecifies whether the SSL certificate for the server is to be verified or not. By default, this option is set to True.
Default
true
Operations · 46
Create Ticket 11 params
create_ticketcreate_ticketCreates an issue. Give the issue type by name or by id. Anything else the project requires (a custom field, a JSM request type, a reporter) goes in Other Fields.
- Project Key
project_keyselect requiredKey of the project to create the issue in. Pick from the list or enter a key.
- Summary
ticket_summarytext requiredThe issue summary (title).
- Description
ticket_descriptiontextarea(Optional) Plain text, or an Atlassian Document Format JSON document. Blank lines start a new paragraph.
- Issue Type
issue_typeselectIssue type name, exactly as the project spells it. Jira Service Management projects use names such as "[System] Service request". Use List Issue Types to see them. Ignored when Issue Type ID is set. The list shows the chosen project's own types.
- Issue Type ID
issue_type_idselect(Optional) Issue type id, for example 10341. Wins over Issue Type.
- Priority
prioritytext(Optional) Priority name, for example High. Leave empty when the project has no Priority field.
- Labels
labelstext(Optional) Comma-separated labels, or a JSON list.
- Assignee
assignee_account_idselect(Optional) The assignee. Pick a user or enter an account id.
- Parent Key
parenttext(Optional) Parent issue key. Required for sub-tasks, for example SEC-1.
- Other Fields
other_fieldsjson(Optional) JSON object merged into the issue fields, for example {"customfield_10010": "1/25", "reporter": {"accountId": "..."}}. It overrides the fields above.
- Return Full Issue
include_detailscheckboxAlso fetch the created issue (one extra read) and return it under "issue".
Default
false
Get Ticket Details 4 params
get_ticket_detailsget_ticket_detailsRetrieves one issue.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Fields
fieldstext(Optional) Comma-separated fields to return, for example summary,status.
- Expand
expandtext(Optional) Comma-separated expansions, for example changelog,renderedFields.
- Include Plain Text
include_textcheckboxAdd description_text, the description flattened from ADF to plain text.
Default
false
Update Ticket 9 params
update_ticketupdate_ticketUpdates fields, adds a comment and/or moves the issue to a new status. Only the values you set are sent. The project cannot be changed.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Summary
summarytext(Optional) New summary.
- Description
descriptiontextarea(Optional) New description (plain text or ADF JSON).
- Priority
prioritytext(Optional) New priority name.
- Labels
labelstext(Optional) Replaces the labels. Comma-separated or a JSON list.
- Comment
commenttextarea(Optional) A comment to add.
- Status
statusselect(Optional) Target status name. The issue is moved with the workflow transition that leads there.
- Other Fields
other_fieldsjson(Optional) JSON object of additional fields to set.
- Notify Users
notify_userscheckboxSend Jira notifications for the field changes.
Default
true
Delete Ticket 2 params
delete_ticketdelete_ticketDeletes an issue.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Delete Sub-tasks
delete_subtaskcheckboxAlso delete the issue's sub-tasks.
Default
false
Set Ticket Status 5 params
set_statusset_statusMoves an issue through its workflow, by target status name or by transition id.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Status
statusselectName of the status to move to, or of the transition. The list shows what the issue can move to now.
- Transition ID
transition_idselect(Optional) Transition id. Wins over Status. See Get Transitions.
- Resolution
resolutiontext(Optional) Resolution name, for transitions that require one.
- Comment
commenttextarea(Optional) A comment to add with the transition.
Get Transitions 1 param
get_transitionsget_transitionsLists the workflow transitions available from the issue's status.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
Assign Issue 2 params
assign_issueassign_issueAssigns the issue. An empty Account ID unassigns it; "-1" assigns the project's default assignee.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Assignee
accountIdselectThe new assignee (an account id). Leave empty to unassign; "-1" assigns the project default.
Get Changelog 3 params
get_changelogget_changelogRetrieves the change history of an issue.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Start At
startAtinteger(Optional) Index of the first result to return. Defaults to 0.
- Max Results
maxResultsinteger(Optional) Maximum number of results per page. Defaults to 50.
Default
50
Add Worklog 4 params
add_worklogadd_worklogLogs time against an issue.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Time Spent
time_spenttext requiredTime in Jira notation, for example 1h 30m.
- Started
starteddatetime(Optional) When the work started. Defaults to now.
- Comment
commenttextarea(Optional) Work description.
Add Comment 3 params
add_commentadd_commentAdds a comment to an issue.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Comment
commenttextarea requiredComment text (plain text or ADF JSON).
- Internal (JSM)
internalcheckboxIn a Jira Service Management project, make the comment internal so the customer cannot see it.
Default
false
Get Comments 5 params
get_commentsget_commentsLists the comments on an issue.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Order By
orderByselect(Optional) Sort order.
Default
createdOptions created-created - Include Plain Text
include_textcheckboxAdd body_text to each comment.
Default
false - Start At
startAtinteger(Optional) Index of the first result to return. Defaults to 0.
- Max Results
maxResultsinteger(Optional) Maximum number of results per page. Defaults to 50.
Default
50
Update Comment 3 params
update_commentupdate_commentReplaces the text of a comment.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Comment ID
comment_idtext requiredId of the comment.
- Comment
commenttextarea requiredNew comment text.
Delete Comment 2 params
delete_commentdelete_commentDeletes a comment.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Comment ID
comment_idtext requiredId of the comment.
Add Attachment 3 params
submit_filesubmit_fileAttaches a FortiSOAR file to an issue.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Reference Type
pathselectHow the file is identified.
Default
Attachment IDOptions Attachment IDFile IRI - Reference Value
valuetext requiredThe FortiSOAR attachment id or file IRI.
Add Remote Link 3 params
add_remote_linkadd_remote_linkAdds a web link to an issue.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- URL
urltext requiredThe link target.
- Title
titletext requiredThe link text.
Link Issues 4 params
link_issueslink_issuesCreates a link between two issues, for example Blocks or Relates.
- Link Type
link_typeselect requiredLink type name. See List Link Types.
- Inward Issue
inward_issuetext requiredKey of the inward issue.
- Outward Issue
outward_issuetext requiredKey of the outward issue.
- Comment
commenttextarea(Optional) A comment to add with the link.
List Link Types
list_link_typeslist_link_typesLists the issue link types.
No parameters.
List Tickets 8 params
list_ticketslist_ticketsSearches with JQL. Jira requires the query to be bounded (for example project = SEC), and interprets dates in the calling user's time zone.
- JQL Query
jql_querytext requiredThe JQL to run. An ORDER BY clause is allowed.
- Updated Since
start_timedatetime(Optional) Only issues updated at or after this time (ANDed onto the JQL, to the minute).
- Fields
fieldstext(Optional) Comma-separated fields to return. Defaults to all navigable fields.
- Expand
expandtext(Optional) Comma-separated expansions.
- Max Results
maxResultsinteger(Optional) Page size. Defaults to 50.
Default
50 - Next Page Token
nextPageTokentext(Optional) The nextPageToken from a previous response, to read the next page.
- Fetch All Pages
fetch_allcheckboxFollow nextPageToken until the results run out or Max Total is hit.
Default
false - Max Total
max_totalinteger(Optional) Cap for Fetch All Pages. Defaults to 1000.
Default
1000
Validate JQL Query 1 param
validate_jql_queryvalidate_jql_queryChecks a JQL string for errors without running it.
- JQL Query
jql_querytext requiredThe JQL to validate.
List Projects 4 params
list_projectslist_projectsLists the projects the account can browse.
- Query
querytext(Optional) Filter by project name or key.
- Fetch All Pages
fetch_allcheckboxRead every page (up to 1000 projects).
Default
false - Start At
startAtinteger(Optional) Index of the first result to return. Defaults to 0.
- Max Results
maxResultsinteger(Optional) Maximum number of results per page. Defaults to 50.
Default
50
Get Project 1 param
get_projectget_projectRetrieves one project.
- Project Key
project_keyselect requiredThe project key or id.
Search Users 3 params
search_userssearch_usersFinds users by name or email.
- Query
querytext(Optional) Name or email fragment. Empty lists users.
- Start At
startAtinteger(Optional) Index of the first result to return. Defaults to 0.
- Max Results
maxResultsinteger(Optional) Maximum number of results per page. Defaults to 50.
Default
50
Get User Details 1 param
get_user_detailsget_user_detailsRetrieves a user by account id.
- User
accountIdselect requiredThe user (an account id).
List Issue Types 1 param
list_issue_typeslist_issue_typesLists issue types: those usable in one project, or every type on the site when no project is given.
- Project Key
project_keyselect(Optional) Limit to the types this project allows.
Get Create Metadata 4 params
get_create_metadataget_create_metadataLists the fields (and which are required) for creating an issue of a type in a project.
- Project Key
project_keyselect requiredThe project key or id.
- Issue Type ID
issue_type_idselect requiredThe issue type id.
- Start At
startAtinteger(Optional) Index of the first result to return. Defaults to 0.
- Max Results
maxResultsinteger(Optional) Maximum number of results per page. Defaults to 200.
Default
200
List Priorities 2 params
list_prioritieslist_prioritiesLists the priorities. Needs the manage:jira-configuration scope (see README).
- Start At
startAtinteger(Optional) Index of the first result to return. Defaults to 0.
- Max Results
maxResultsinteger(Optional) Maximum number of results per page. Defaults to 50.
Default
50
List Fields
list_fieldslist_fieldsLists system and custom fields, including custom field ids.
No parameters.
List Service Desks 2 params
list_service_deskslist_service_desksLists Jira Service Management service desks.
- Start
startinteger(Optional) Index of the first result.
- Limit
limitinteger(Optional) Maximum results.
List Request Types 4 params
list_request_typeslist_request_typesLists the request types of a service desk.
- Service Desk
service_desk_idselect requiredThe service desk (its numeric id).
- Search Query
search_querytext(Optional) Filter by name.
- Start
startinteger(Optional) Index of the first result.
- Limit
limitinteger(Optional) Maximum results.
Get Request Type Fields 2 params
get_request_type_fieldsget_request_type_fieldsLists the fields a request type takes, and which are required.
- Service Desk
service_desk_idselect requiredThe service desk (its numeric id).
- Request Type
request_type_idselect requiredThe request type (its id). Pick the service desk first.
Create Customer Request 7 params
create_customer_requestcreate_customer_requestCreates a request through the JSM API, so it has a request type and shows in the portal and queues.
- Service Desk
service_desk_idselect requiredThe service desk (its numeric id).
- Request Type
request_type_idselect requiredThe request type (its id). Pick the service desk first.
- Summary
summarytext requiredThe request summary.
- Description
descriptiontextarea(Optional) Description, as plain or wiki-markup text.
- Request Field Values
request_field_valuesjson(Optional) JSON object of other request fields, keyed by field id.
- Raise On Behalf Of
raise_on_behalf_oftext(Optional) Account id of the customer.
- Participants
request_participantstext(Optional) Comma-separated participant account ids.
Get Customer Request 2 params
get_customer_requestget_customer_requestRetrieves a request with its portal-side details.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Expand
expandtext(Optional) Comma-separated expansions, for example participant,sla.
Add Request Comment 3 params
add_request_commentadd_request_commentComments on a request through the JSM API.
- Issue Key
issue_keytext requiredSpecify the key of the issue, for example SEC-123.
- Comment
commenttextarea requiredComment text (JSM takes plain or wiki-markup text).
- Public
publiccheckboxVisible to the customer. Untick for an internal note.
Default
true
List Queues 4 params
list_queueslist_queuesLists the queues of a service desk.
- Service Desk
service_desk_idselect requiredThe service desk (its numeric id).
- Include Issue Count
include_countcheckboxAlso return the issue count of each queue.
Default
false - Start
startinteger(Optional) Index of the first result.
- Limit
limitinteger(Optional) Maximum results.
List Queue Issues 4 params
list_queue_issueslist_queue_issuesLists the issues in a queue.
- Service Desk
service_desk_idselect requiredThe service desk (its numeric id).
- Queue
queue_idselect requiredThe queue (its id). Pick the service desk first.
- Start
startinteger(Optional) Index of the first result.
- Limit
limitinteger(Optional) Maximum results.
Execute an API Request 5 params
execute_api_requestexecute_api_requestCalls any Jira or Jira Service Management REST endpoint with this configuration's credentials. The scopes needed depend on the endpoint.
- Endpoint
endpointtext requiredA path on the configured site, for example /rest/api/3/project/search. Full URLs are refused so credentials never leave the configured site.
- Method
methodselectThe HTTP method. Defaults to GET.
Default
GETOptions DELETEGETPATCHPOSTPUT - Content Type
content_typeselect(Optional) Content-Type of the payload.
Default
application/jsonOptions Noneapplication/jsonapplication/x-www-form-urlencoded - Query Parameters
query_paramsjson(Optional) Query string parameters, as a JSON object.
- Payload
payloadjson(Optional) The request body.
Get Project Options
get_project_optionsget_project_optionsPopulates project dropdowns: every project the account can browse, as Name (KEY) / key pairs.
No parameters.
ReturnstypeitemsGet Issue Type Options
get_issue_type_optionsget_issue_type_optionsPopulates issue type dropdowns with the chosen project's issue type names (the whole site's when no project is chosen).
No parameters.
ReturnstypeitemsGet Issue Type ID Options
get_issue_type_id_optionsget_issue_type_id_optionsPopulates issue type id dropdowns as Name [id] / id pairs, for the chosen project when one is set.
No parameters.
ReturnstypeitemsGet Link Type Options
get_link_type_optionsget_link_type_optionsPopulates link type dropdowns with the issue link type names.
No parameters.
ReturnstypeitemsGet User Options
get_user_optionsget_user_optionsPopulates assignee dropdowns with the active people on the site, as Name (email) / account id.
No parameters.
ReturnstypeitemsGet Service Desk Options
get_service_desk_optionsget_service_desk_optionsPopulates service desk dropdowns as Project (KEY) / service desk id.
No parameters.
ReturnstypeitemsGet Request Type Options
get_request_type_optionsget_request_type_optionsPopulates request type dropdowns for the chosen service desk. Empty until Service Desk is set.
No parameters.
ReturnstypeitemsGet Queue Options
get_queue_optionsget_queue_optionsPopulates queue dropdowns for the chosen service desk. Empty until Service Desk is set.
No parameters.
ReturnstypeitemsGet Transition Options
get_transition_optionsget_transition_optionsPopulates status dropdowns with what the chosen issue can move to now. Empty until Issue Key is set.
No parameters.
ReturnstypeitemsGet Transition ID Options
get_transition_id_optionsget_transition_id_optionsPopulates transition id dropdowns for the chosen issue. Empty until Issue Key is set.
No parameters.
Returnstypeitems