You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.