To save time entering information when you create workflows, you can create Jira global variables for the Jira Cloud ID (used in OAuth flows), and the Jira Subdomain and Issue Type (used in Basic auth flows).
Procedure
Adding Jira global settings
- Click Configuration > General > Global Settings.
- Click Add new variable (+).
- Enter Jira.Cloud Id as the key or name of the global setting.
- Enter the Cloud ID as the value.
- Repeat steps 2 - 4 and complete these actions:
- Enter JIRA.Subdomain as the key value and enter your Jira subdomain as the value. For example, if your Jira URL is https://mycompany.atlassian.net. Your subdomain is mycompany.
- Enter JIRA.Issue_Type as the key value and enter the issue type as the value. Typical values include Bug, Task, Sub-task, Story. The value depends on the configuration of your Jira instance and should be validated there. These values are case-sensitive.
- Save your changes.
Jira Cloud ID
Your Jira Cloud ID is a series of letters and numbers separated by dashes.
You can retrieve your Cloud ID using the following API request: https://api.atlassian.com/oauth/token/accessible-resources
You can fetch your Cloud ID by creating a workflow in Oomnitza. Simply create a workflow, add an API block and in Advanced Mode, enter the above URL (API Request) in the Information tab. Then, select the credentials you added to Oomnitza from the Authorization tab. Select the Response tab. You can map the response by placing {{response}} in the Response field and mapping it to a custom long text Oomnitza field, such as API Response
The Cloud ID is returned in the "id" value. For further information, refer to Jira API documentation: Creating OAuth credentials in Jira Cloud.
Comments
0 comments
Please sign in to leave a comment.