Hi, I can't figure out how to copy [Select List (multiple choices)] custom field from linked issue.
Other fields work fine.
I need to copy one more custom field - customfield_10177.
The type of this field is Select List (multiple choices).
Smart value {{issue.issuelinks.inwardIssue.customfield_10177}} doesn't work.
I want the rule to be manually triggered from the edited issue.
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
Have you confirmed that each of those field edits actually works as you expect? The concern is two-fold:
Next, for multiple-select option field, you may need to use JSON to add the values: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-select-custom-field
If we assume the data for customfield_10177 is actually loaded with the issuelinks smart value, and there is one-and-only-one issue in the inwardIssue attribute, this might work with the function asJsonObjectArray():
{
"fields": {
"customfield_10177": {{issue.issuelinks.inwardIssue.customfield_10177.asJsonObjectArray("value")}}
}
}
Kind regards,
Bill
there is only one linked issue and the copied custom fields exist in both issues
the type of source and destination customfield_10177 is [Select List (multiple choices)] and the valid options for this field are also the same
other copied custom fields work exactly as I wanted
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was not noting the fields exist (or not) in the issue types used. But instead that the {{issue.issuelinks}} smart value does not load all of the associated data by default for a specific issue. If it did, one could imagine a situation were a single issue with linked ones could pull thousands of others, in an ever increasing tree of links, including duplicates of the same issue. Regardless of that...
Did you try the JSON expression I suggested rather than setting the field from the dropdown list?
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.