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.
Hi,
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!
Björn
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, tried without giving summary:
{
"fields": {
"customfield_12405": ["{{issue.customfield_13602.value}}"]
}
}
Getting an error:
PROJECT_KEY-1 (expected Object (customfield_12405))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
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"}]
}
}
once.
That way you can see what value the system expects.
I hope this helps you figure out what's going wrong.
Regards, Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Tried both ways. But, insight custom field not getting updated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.