Dear Atlassian community,
My colleague and I are struggling with an automation rule which just doesn't want to get working. In the rule, we use the Lookup issues action, which we use to find issues with the same material number (which is a custom field in our instance). We then link these issues as parent and child, which works perfectly fine via the advanced edit action. We can determine the children by a slightly different number, which contains the number of the (one and only) parent. After the creation of the link, we'd like the children to be edited by adding the values of the assignee and another custom user picker field from the parent (after refetching the issue data).
Unfortunately, we constantly run into an error ("expected Object containing a 'name' property (assignee)"), when trying to do so.
We tried different approaches and thought the solution for the edit action (in this example assignee) should look like this:
{
"fields": {
"assignee": { "id": "{{issue.issuelinks.first.outwardIssue.assignee}}" }
}
}
We also tried the following smart values:
{{issue.issuelinks.first.outwardIssue.assignee.displayName}}
{{issue.issuelinks.first.outwardIssue.assignee.Name}}
{{lookupIssues.assignee}}
{{lookupIssues.assignee.displayName}}
{{lookupIssues.assignee.Name}}
This is a combined solution from the following threads:
and
Thank you for your help!
Kind regards,
Chris
The solution came right after I created this post:
{
"fields": {
"assignee": { "name": "{{issue.issuelinks.first.outwardIssue.assignee}}" }
}
}
A small change within a code, but a huge change for an automation :D
Thank you anyway! ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.