Is it possible to populate custom fields using insight attributes via selecting an insight object.
I know you can do it with user fields as shown here:
https://confluence.atlassian.com/jirakb/auto-populate-approvers-from-insight-objects-1072474097.html
{
"fields": {
"Approvers": {{System object.Owners.flatten.asJsonObjectArray("id")}}
}
}
But what if i was to do this with text fields, select list fields, is that possible?
Currently using Automation for Jira for this -> Edit issue.
Thanks
Hi @Ronnie Wan ,
I believe it should be possible, but be aware, that each type of custom field expects different formatted data - if the provided data is incorrect, custom field value won't be stored.
Thanks @Hana Kučerová
Are you able to provide examples as I can't find any documentation which helps
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.
Hey @Hana Kučerová
So I have an insight object called Template.
This object in Insight has attribute fields such as select list, text fields, date fields
I also have an Insight custom field called Template which is based off the Insight object mentioned above.
And what i am wanting to do is when a user selects a template via the custom field, in automation for Jira I can put something there which populates custom fields on a jira ticket such as; a select list, text fields, date fields using attributes from that template object stored in Insight.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm sorry for the late answer, it took me a little bit time to test it.
So, I've got:
Custom fields:
Object type Template has attributes:
Now, my automation rule looks like this:
WHEN: Value changes for Test Template
IF: Test Template is not empty
THEN: Edit issue fields:
Probably you will need to experiment with this a little bit, but in general it works for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Hana Kučerová
I've managed to get most of it working,
I forgot to mention, is there a way to copy across text attribute fields into insight custom fields?
Or a way to copy across object attribute values from insight into object custom fields?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ronnie Wan I’m sorry, I don’t understand what you mean. Can you give me an example, please? Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Hana Kučerová
So similar to what you said before, for e.g.
I'm wanting to use the same Template logic in that an insight object custom field called Squad gets the data from the template insight object using the attribute also called Squad. - This is not a short text attribute, but an object attribute in Insight.
Hope that makes more sense?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ronnie Wan If I get it right, it should be possible to use:
{{triggerIssue.Test Template.[Squad attribute name in template object].[Squad attribute name]}}
So, in your case probably:
{{triggerIssue.Test Template.Squad.Name}}
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.