Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Insight custom field not getting populated from single select field using automation rule

I'm trying to populate insight custom field from select list(single choice) custom field using automation rule(using smart values)

"fields": {
"customfield_12405": [{"summary" : "{{issue.customfield_13602.value}}"}]

 This rule run successfully. But not populating insight custom field with name equal to that of selected single select custom field value.

I tried to print {{issue.customfield_13602.value}} to the audit log and it's showing the value correctly and there is insight object with exact name.

It would be a great help if you could help with this issue.


2 answers


You would need to get the object key of the object you want to store in the field. In automation for cloud you could use the lookup objects action to find the correct object, but I don't think they are available yet in DC. 

What you could do is to add a post function in the workflow to set the field. Use the Insight post function called Assign Objects from an IQL query based on data from an issue

IQL: Name=${customfield_22222.label}

The same thing can be done in the custom field configuration for the Insight field. There you can set the Filter Assign scope IQL with the same IQL as above. If you also check the "Strict" checkbox you can make the Insight field update automatically when the select field updates at any time. 

Hope that helps!


Hi  @harilal_poyil ,

What is de name of the attribute that is the label of Insight Object.

Maybe you can try to change 'summary' into the name of this attribute.

regards, Marco 

Hi, tried without giving summary:

"fields": {
"customfield_12405": ["{{issue.customfield_13602.value}}"]

Getting an error: 

PROJECT_KEY-1 (expected Object (customfield_12405))

The label attribute is "Name".

Tried like:

"fields": {
"customfield_12405": [{"Name" : "{{issue.customfield_13602.value}}"}]

 The rule is running successfully. But insight custom field is not getting populated.


To investigate further, you can include 

"fields": {
"customfield_12405": [{"summary" : "name of a object"}]

(a real/hard name)

in the rule and try out the rule and then 

"fields": {
"customfield_12405": [{"summary" : "Id of a object"}]


That way you can see what value the system expects.
I hope this helps you figure out what's going wrong.

Regards, Marco

Hi, Tried both ways. But,  insight custom field not getting updated.

Suggest an answer

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

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

533 views 1 10
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