Hello,
I'm trying to find a way to customize incidents' priorities in OpsGenie based on the information imported from Jira. The integration I've made doesn't seem to import the priority field from Jira so what I want to ask is, can I import custom fields from Jira? If yes, how?
Hi @Horia Luta ,
Yes, you can import custom fields from Jira, however, you shouldn't need to use a custom field, as you can map the Jira priorities directly to Opsgenie priorities. Here is an article with screenshots giving a few different methods for mapping Jira priorities to Opsgenie:
You can map custom fields using this format for the legacy Jira integration:
{{_payload.issue.fields.customfield_13154}}
And this format for the Jira cloud integration:
Here is a more in depth article on that subject:
If you apply the following to something like the Description field, it will display all the objects linked to the ticket:
You can then add objects in this way to capture what you wish:
This displays as something like this:
Description: {summary=Rus Alert Test, schema=ari:cloud:platform-services::jira-ugc-free/jira_issue_ugc_free_v1.json, components=[], creator={accountId=712020:74de31db-791e-4db7-b7ed-e69994a28b38, displayName=Rus Yates-Aylott}, resource=ari:cloud:jira:005b2917-803a-4a66-adbe-a8cdbea04be8:issue/321077, created=2024-05-08T13:14:55.930+0200, customFields={customfield_10090=[], customfield_11181={self=https://destinygroup.atlassian.net/rest/api/2/customFieldOption/14276, value=Call2Teams GO, id=14276}, customfield_10094={languageCode=en, displayName=English}, customfield_10471=[], customfield_10472=[], customfield_10010={_links={jiraRest=https://destinygroup.atlassian.net/rest/api/2/issue/321077, web=https://destinygroup.atlassian.net/servicedesk/customer/portal/58/DSTNY-1875,... etc etc..
Now we can see we can add a customfield_id to our object:
This might result in something like this: customfield_11181={self=https://destinygroup.atlassian.net/rest/api/2/customFieldOption/14276, value=Call2Teams GO, id=14276
Because of the way in which this is structured, we need to specify the inner value so:
And that, my friends, will produce the value of the custom field: In my example: Call2Teams GO
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.