Set up the Jira spoke for Jira Cloud
Integrate your ServiceNow instance with the Jira Cloud instance to authenticate the requests from ServiceNow.
Vorbereitungen
- Request an Integration Hub subscription.
- Activate the Jira spoke.
- Role required: admin.
Warum und wann dieser Vorgang ausgeführt wird
You can set up the Jira spoke for your Jira Cloud instance using basic authentication or OAuth authentication as per your requirement.
Option 1: Using basic authentication (API token)
Integrate the ServiceNow instance and Jira Cloud instance using an API key to authenticate ServiceNow requests.
Vorbereitungen
Role required: admin.
Warum und wann dieser Vorgang ausgeführt wird
Generate an Atlassian account API token
Generate an Atlassian account API token to authenticate requests for spokes associated with an Atlassian account.
Vorbereitungen
Make sure you have an Atlassian account.
Role required: Atlassian administrator credentials
Warum und wann dieser Vorgang ausgeführt wird
Prozedur
Nächste Maßnahme
Configure a connection for Jira spoke
Add and configure a Jira connection to authenticate ServiceNow requests in Jira spoke.
Vorbereitungen
Role required: admin
Prozedur
Option 2: Using basic authentication (API token with scopes)
Integrate the ServiceNow instance and Jira Cloud instance using an API key with scopes to authenticate ServiceNow requests.
Vorbereitungen
Role required: admin.
Warum und wann dieser Vorgang ausgeführt wird
Generate an Atlassian account API token with scopes
Generate an Atlassian account API token with the required scopes to authenticate requests for spokes associated with an Atlassian account.
Vorbereitungen
Make sure you have an Atlassian account.
Role required: Atlassian administrator credentials
Warum und wann dieser Vorgang ausgeführt wird
Prozedur
Configure a connection for Jira spoke
Add and configure a Jira connection to authenticate ServiceNow requests in Jira spoke.
Vorbereitungen
Role required: admin
Prozedur
Required API token scopes
API token scopes needed to use the required spoke action are listed here.
These scopes are needed when you set up Jira spoke for Jira Cloud using API token with scope. For more information, see Option 2: Using basic authentication (API token with scopes).
| Category | Action | Description | Scope required (Classic) | Scopes required (Granular) |
|---|---|---|---|---|
| Audit Management | Look up Audit Logs Stream | Retrieves login activity for the AtlassianJira user subscriptions. Hinweis: This action is supported on Jira Server 9 and earlier versions, and Jira Cloud. |
manage:jira-configuration | read:audit-log:jira, read:user:jira |
| Look up Audit Logs Stream (Server 10+) | Retrieves audit log records from the Jira instance within a specified date range. Hinweis: This action is supported on Jira Server 9 and later versions. |
This action is supported only on Jira Server. | ||
| Group Management | Add User to Group | Adds given user to a group in Jira. | manage:jira-configuration | write:group:jira, read:avatar:jira, read:group:jira, read:user:jira |
| Create Group | Creates a group in Jira. | manage:jira-configuration | read:group:jira, read:user:jira, write:group:jira, read:avatar:jira | |
| Look up Groups Stream | Retrieves all groups in the Atlassian account, including the default groups. Hinweis: This action can be used with Jira Cloud subscription only. |
read:jira-user | read:group:jira | |
| Look up Users by Group Name Stream | Retrieves details of all members in an Atlassian group. | manage:jira-configuration | read:group:jira, read:user:jira, read:avatar:jira | |
| Remove Group | Removes the given group from Jira. | manage:jira-configuration | delete:group:jira | |
| Remove User from Group | Removes the given user from a group in Jira. | manage:jira-configuration | write:group:jira | |
| Issue Management | Add Comment | Adds a comment to the specified issue in Jira. | write:jira-work | read:comment:jira, read:comment.property:jira, read:group:jira, read:project:jira, read:project-role:jira, read:user:jira, write:comment:jira, read:avatar:jira |
| Add Watcher | Adds the specified user as a watcher for the specified issue. | write:jira-work | write:issue.watcher:jira | |
| Assign Issue | Assigns the issue in Jira to the user. | write:jira-work | write:issue:jira | |
| Copy Attachment | Copies the required attachment associated with the ServiceNow record to the required issue in Jira. | write:jira-work | read:user:jira, write:attachment:jira, read:attachment:jira, read:avatar:jira | |
| Create Issue | Creates an issue in Jira. Depending on how your organization is using Jira, an issue could represent a software bug, a project task, a help desk ticket, or more. An issue in Jira represents a task in the ServiceNow AI Platform. | write:jira-work, read:jira-work | write:issue:jira, write:comment:jira, write:comment.property:jira, write:attachment:jira, read:issue:jira | |
| Delete Attachment | Deletes the required attachment in Jira. | write:jira-work | delete:attachment:jira | |
| Delete Issue | Deletes an issue in Jira. | write:jira-work | delete:issue:jira | |
| Delete Watcher | Deletes the user as a watcher for the specified issue. | write:jira-work | write:issue.watcher:jira | |
| Do Transition | Transitions an issue in Jira from one state to another. | write:jira-work | write:issue:jira, write:issue.property:jira | |
| Look up Issue Type Statuses by Project | Retrieves details of the statuses in a project. | read:jira-work | read:issue-status:jira, read:issue-type:jira, read:status:jira | |
| Look up Issue | Retrieves the details for an issue. | read:jira-work | read:issue-meta:jira, read:issue-security-level:jira, read:issue.vote:jira, read:issue.changelog:jira, read:avatar:jira, read:issue:jira, read:status:jira, read:user:jira, read:field-configuration:jira | |
| Look up Issue Priorities | Retrieves the list of issue priorities and details for individual issue priorities. | write:jira-work, read:jira-work | read:priority:jira | |
| Look up Issues Stream | Retrieves a list of issues matching a JQL query string. | read:jira-work | read:issue-details:jira, read:audit-log:jira, read:avatar:jira, read:field-configuration:jira, read:issue-meta:jira | |
| Look up Sprint Issues Stream | Retrieves the details of all issues for the given sprint. | No classic scopes available. | read:sprint:jira-software , read:issue-details:jira, read:jql:jira | |
| Look up Transitions | Retrieves information about all Transitions for a given Issue ID. | read:jira-work | read:issue.transition:jira, read:status:jira, read:field-configuration:jira | |
| Look up Watchers | Retrieves the list of watchers for the specified issue. | read:jira-work | read:issue.watcher:jira, read:user:jira, read:avatar:jira | |
| Update Issue | Updates a set number of fields of an issue in Jira with values passed as input. | write:jira-work, read:jira-work | write:issue:jira | |
| Metadata Retrieval | Get Creatable Fields (Metadata) | Retrieves the list of all fields in a required Jira project. | write:jira-work, read:jira-work | read:issue-meta:jira, read:avatar:jira, read:field-configuration:jira |
| Get Editable Fields (Metadata) | Retrieves the list of all editable fields in a required Jira issue. | write:jira-work, read:jira-work | read:issue-meta:jira, read:field-configuration:jira | |
| Get Issue Types (Metadata) | Retrieves the list of all issue types in a required Jira project. | write:jira-work, read:jira-work | read:issue-meta:jira, read:avatar:jira, read:field-configuration:jira | |
| Project Management | Create Project | Creates a project in Jira. | manage:jira-configuration | write:project:jira, read:project:jira |
| Look up Project | Retrieves details of the specified project by its ID or key. | write:jira-work, read:jira-work | read:issue-type:jira, read:project:jira, read:project.property:jira, read:user:jira, read:application-role:jira, read:avatar:jira, read:group:jira, read:issue-type-hierarchy:jira, read:project-category:jira, read:project-version:jira, read:project.component:jira | |
| Look up Projects | Retrieves details of all projects. Hinweis: This action only works for the Jira server. |
This action is supported only on Jira Server. | ||
| Look up Projects Stream | Retrieves details of all projects. Hinweis: This action only works for the Jira Cloud. |
read:jira-work | read:issue-type:jira, read:project:jira, read:project.property:jira, read:user:jira, read:application-role:jira, read:avatar:jira, read:group:jira, read:issue-type-hierarchy:jira, read:project-category:jira, read:project-version:jira, read:project.component:jira | |
| Look up Users Assignable to Projects | Retrieves a list of users that can be assigned to issues in one or more projects. | read:jira-user | read:project:jira, read:user:jira, read:application-role:jira, read:avatar:jira, read:group:jira | |
| Sprint Management | Create Sprint | Creates a sprint in Jira. | No classic scopes are available. | read:board-scope:jira-software , read:project:jira Create Sprint - write:sprint:jira-software |
| Delete Sprint | Deletes a sprint in Jira. | No classic scopes are available. | delete:sprint:jira-software | |
| Look up Sprint | Retrieves the details of the required sprint as a complex object. | No classic scopes are available. | read:sprint:jira-software | |
| Look up Sprints by Board | Retrieves the details of all sprints in the required board. | No classic scopes are available. | read:sprint:jira-software | |
| Update Sprint | Updates the details of a sprint in Jira. | No classic scopes are available. | write:sprint:jira-software | |
| Story Management | Create Story | Creates a story in the Jira Cloud instance. This is comparable to story in the ServiceNow Agile Development plugin. | write:jira-work | write:issue:jira, write:comment:jira, write:comment.property:jira, write:attachment:jira, read:issue:jira |
| Look up Stories Stream | Retrieves details of all stories. | read:jira-work | read:issue-details:jira, read:field.default-value:jira, read:field.option:jira, read:field:jira, read:group:jira | |
| Update Story | Updates a set number of fields of a story in Jira Cloud with the provided input values. | write:jira-work | write:issue:jira | |
| User Management | Create User | Creates a user in Jira. Hinweis: This action isn’t supported when OAuth 2.0 authentication is used. |
Scoped API token is not supported for this action. | |
| Look up Authenticated User | Retrieves details of the authenticated user account. | read:jira-user | read:application-role:jira, read:group:jira, read:user:jira, read:avatar:jira | |
| Look up Group Memberships for User | Retrieves details of all groups of an Atlassian user. | read:jira-user | read:group:jira | |
| Look up Users Stream | Retrieves details of all Atlassian Jira user subscriptions. Hinweis: This action can be used with a Jira Cloud subscription only. |
read:jira-user | read:user:jira, read:application-role:jira, read:avatar:jira, read:group:jira | |
| Look up Users Stream by Name | Retrieves a list of users that match the search string. Hinweis: This action can be used with a Jira server subscription only. |
This action is supported only on Jira Server. | ||
| Remove User | Removes a user from Jira. Hinweis: This action isn’t supported when OAuth 2.0 authentication is used. |
Scoped API token is not supported for this action. | ||
| Utility Actions | Copy Issue Attachment to Record | Copies Attachment from Jira to any record in ServiceNow instance. When you use this action in a subflow, make sure that the Content URL data pill is specified in the Attachment URL field. | No applicable scopes as Jira endpoint is not used in this action. | |
| Look up Fields | Retrieves the internal name and other details of the required field label in Jira. | read:jira-work | read:field:jira, read:avatar:jira, read:project-category:jira, read:project:jira, read:field-configuration:jira | |
| Look up Issue from Comment | Retrieves the details of the issue by parsing the payload for the specified comment. You can use this action in the Process Jira Webhook subflow for Jira on-prem server when only comment related information is specified without any details about the Jira issue. For example, when only comment information is specified, this action parses the payload and extracts the issue details. | No applicable scopes as Jira endpoint is not used in this action. | ||
| Look up Latest Attachment on Issue | Retrieves the latest attachment for the specified issue from Jira. You can use this action in a flow or subflow for validation. For example, a subflow adds an additional attachment only when the latest attachment of an issue in Jira isn’t as the same specified attachment. | read:jira-work | read:issue-meta:jira, read:issue-security-level:jira, read:issue.vote:jira, read:issue.changelog:jira, read:avatar:jira, read:issue:jira, read:status:jira, read:user:jira, read:field-configuration:jira | |
| Look up Latest Comment on Issue | Retrieves the latest comment for the specified issue from Jira. You can use this action in a flow or subflow for validation. For example, a subflow adds an additional comment only when the latest comment of an issue in Jira isn’t as the same specified comment. | read:jira-work | read:comment:jira, read:comment.property:jira, read:group:jira, read:project:jira, read:project-role:jira, read:user:jira, read:avatar:jira | |
| Look up Server | Retrieves general information about the current Jira instance. | Any scope | Any scope | |
| Webhook Management | Look up Webhooks | Retrieves details of all registered webhooks from the Jira instance. | Scoped API token is not supported for this action. | |
| Subscribe Webhook | Registers a webhook in the Jira instance. | Scoped API token is not supported for this action. | ||
| Unsubscribe Webhook | Deletes the registered webhook in Jira instance. | Scoped API token is not supported for this action. | ||
| Update Webhook | Updates webhook with the given ID in Jira. Hinweis: This action isn’t supported when OAuth 2.0 authentication is used. |
Scoped API token is not supported for this action. | ||
Option 3: Using OAuth authentication
Integrate the ServiceNow instance with your Jira account using OAuth to authenticate ServiceNow requests.
Vorbereitungen
Role required: admin.
Create an OAuth 2.0 integration in Jira account
Create an OAuth 2.0 integration in Atlassian Developer console to authenticate the requests.
Vorbereitungen
Role required: admin
Prozedur
Obtain the value of Cloud ID
Obtain the value of Cloud ID of the Jira Cloud instance. This value is required during the configuration of the connection record in your ServiceNow instance.
Vorbereitungen
Role required: admin
Prozedur
Create an application registry in ServiceNow instance
Use the information generate while creating the OAuth 2.0 integration to create an application registry record in your ServiceNow instance.
Vorbereitungen
Role required: admin
Prozedur
Create credential record for the Jira spoke
Create a credential record for the Jira account. The Jira spoke connection and credential alias uses this credential to authorize actions.
Vorbereitungen
Role required: admin
Prozedur
Create a connection record for the Jira spoke
Create a connection record for the Jira account. The connection and credential alias uses this connection to perform actions in Jira.
Vorbereitungen
Role required: admin.