Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to access an issue data by its ID via Smart Values

SS
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 1, 2020

Hi,

I know the issue ID from {{issue.ID}} command. 

Can I access its status by mentioning its ID? Similar to {{issue.status.name}}, but to the issue with specific ID, not to currently open issue.

Thanks

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 9, 2020

Hi,

I understand that you're using the automation features in Jira Cloud and want to be able to use a smart value that can also lookup an issue by its ID (and not always refer to the issue at hand). To the best of my knowledge, this is not possible to do today with the automation in Jira. 

The smart values do have some ability to look up other related issues values.  You can see this info in the document, Smart values - general.

issue.epic

  • Added by: anytime an issue is added

If the issue is in an Epic, then epic refers to the Epic issue. You can access all fields of the Epic.

{{issue.epic.key}}
{{issue.epic.status.name}}
{{issue.epic.My Custom Field}}

With that in mind, we could use this to find the ID of the epic itself with something along the lines of:

{{issue.epic.id}}

However, without this specific kind of relationship between the issues, I don't know of any way for you to lookup the field values of issue using the specific ID/Issue key with smart values.

While I have not seen any specific requests exactly like yours, the closest I found was in AUT-425 : Consider adding support to smart-values to look up related issue field values.  I know this isn't exactly the same as providing an issue ID to do a lookup, but it feels like the closest feature request that I think could potentially help.

Sorry this is probably not the answer you were looking for.  But I hope you find this helpful.

Andy

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events