Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Get value of the Insight attribute by its ID for Jira Automation

I am setting an automation to calculate the value of one Insight attribute depending on values of two other attributes of an Insight object. I can get the values without a problem using the name of the attribute, like {{issue.fields.customfield_10166."Budget planned"}}

The problem is that I renamed the Insight attribute and the system does not get the value by the new name (nor by the previous one), which in my opinion is a bug. The attributes which were not renamed work fine.

Now I know the attribute Id is 254, but I don´t know the syntax for it in smart values. For JSON I found objectTypeAttributeId ==264, which is nor working with smart values.

Could you help me to find an expression to get the attribute value by its ID not by its name?

Thank you in advance!

2 answers

Hi @Alex van Vucht (GLiNTECH) 


You're right, the Insight objects in smart values are very tricky to work with!  With Automation for Jira, I try to extract data from an Insight attribute and put it in a custom field in Jira.  Unfortunately, the proposed formula always returns no value.  


The formula used is {{#issue.fields.customfield_39500.attributes}}{{if(typeId.eq(569),values.get(0).displayValue)}}{{/}}


I only changed the customfield number (39500) and the typeId.eq (569) in your proposed formula.


Do I have to set something else in the formula to make it work?


Thanks a lot in advance for your help!



Yes, Insight objects in smart values are a little tricky to work with. I've done a deep dive for another purpose and using some pretty sophisticated Smart Values expressions, this is actually possible.



I hope these new features get documented soon.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

171 views 1 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you