Dear ALL,
is it possible with Jira Data Center to get the comments from a lookup issue?
I use Jira DC version 9,12,12.
Thanks, Vincenzo.
No, it is not yet possible.
For Jira Data Center, the Lookup Issues action only supports a limited number of fields: https://confluence.atlassian.com/automation/jira-smart-values-issues-993924860.html#Jirasmartvaluesissues-lookupissues-properties
There is a suggestion to add the other fields, which you may watch / vote for to see progress: https://jira.atlassian.com/browse/JIRAAUTOSERVER-877
There are two possible workarounds when you need to access other fields for a batch of issues:
When you only need to access the fields, and not edit another issue or perform branching, you may use the bulk-handling option with the plural {{issues}} smart value: https://confluence.atlassian.com/automation/run-a-rule-against-issues-in-bulk-993924653.html
When you need the results to edit another issue, or your rule already uses branching, you may use the Send Web Request action to call the REST API to search for the issues with JQL. Then the web response may be used.
Kind regards,
Bill
Thank You Very Much @Bill Sheboy,
I'm amazed by your deep Jira knowledge.
You are more than a rising star.
Kind Regards,
Vincenzo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You'll want to use the smartvalues to grab the comments when using lookup issues.
{{#issue.comments}}
Comment by: {{author}} at: {{created}}
{{body}}
{{/}}
{{issue.comments.last.body}}
{{issue.comments.first.body}} - the body of the first of many comments
{{issue.comments.size}} - count of comments for the issue
{{#issue.comments}}{{#first}}First:{{author.key}}{{/}}{{body}}{{/}} - prints all of the comments and only prints the first author's key
https://confluence.atlassian.com/automation/jira-smart-values-issues-993924860.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Shawn Doyle - ReleaseTEAM.
That is working for the issue itself but what about if the issue is a result of the lookup function?
I understand from the above post that there is actually a limiltation as how many fields can be grabbed from the lookup feature.
Cheers, Vincenzo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You would need to force the list of issues into a branch so that the issue had the focus for the smart values to work.
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.