I have scenario in Jira Cloud:
One issue can have single or multiple components. I would like to leave one automated comment in issue with text related to different components. For this I tried these solutions, but none is working, and I have no idea why. I appreciate any help.
Solution 1:
{{#issue.components}}
{{name}} - {{customLookupTable.get(name)}}
{{/issue.components}}
This solution returns only name, not text related. (I debugged and when used outside of smart value list, this returns proper text for specific component name.
Solution 2:
variable componento = {{issue.components.name}}
I added Delay and Refetch, because of frustration. It didn't help to solve problem; it behaves same way all the time.
Result with current setup:
Seems like automation is remember always only the original status of the field I try to update. I demonstrated this on random field as it is possible to see in History of issue what happened (it is not obvious for comments).
Solution 3
This is just a possible solution I don't want to use. I can comment separately. However in same cases this means automation will leave several comments and it is not desired output.
I found this about lookup tables:
From what I understand, the syntax looks more like
{{name.get("<itemname>")}}
Edit - sorry, it looks like you have already been there.
The updated call from lookup table is described here:
Update: Create lookup table action improvements - Atlassian Community
I tried it, but maybe I am doing something wrong.
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.