Forums

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

Comment issue with specific text for each component

Michal Kováč
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!
May 16, 2025

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:

  1. Created lookup table with components as keys and text as value.
  2. Smart value used:
{{#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:

  1. Lookup table created.
  2. Used for each

Screenshot 2025-05-16 121151.png

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:

Screenshot 2025-05-16 121613.png

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.

1 answer

0 votes
Alexander Hohmann
Contributor
May 16, 2025

I found this about lookup tables:

https://community.atlassian.com/forums/Automation-articles/New-Automation-action-Create-lookup-table/ba-p/2311333

From what I understand, the syntax looks more like

{{name.get("<itemname>")}}

Edit - sorry, it looks like you have already been there.

Michal Kováč
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!
May 19, 2025

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events