I have made an automation where i generate 2 tasks while creating a change request. I wan't that the assignee's are automatically assigned with values from the parent form. I found the custom fields and wrote a statement in the rule:
{
"fields": {
"assignee": {{issue.parent.customfield_11123.accountId.asJsonObject("id")}}
}
this doesn't work. Any suggestions?
Tnx
Daniel
Welcome to the community.
Whenever you ask for help with an Automation Rule it will help us to help you if you provide:
1. what type of project is this (e.g., company-managed, team-managed, etc.),
2. images that show your complete rule.
3. images showing the details of any relevant actions/conditions/branches.
4. images showing the Audit Log details for the rule execution.
5. Explain where the issue is.
These questions are not for not willing to help, but to have community members understand on how automation works.
Hi Marc,
I must apologize, since It is the first time I am posting on this forum, I didn't know the rules.
Thank you for welcoming me into the community.
So:
The issue is that there is some error in the and it doesn't create the tasks.
| |||||
07/23/2025, 08:15:35 | DemandManagement_CreateTask | SOME ERRORS | 33.08s | Show less | |
Work item created07/23/2025, 08:15:35 Create work item07/23/2025, 08:15:36 Error while parsing additional fields. Not valid JSON. Create work item07/23/2025, 08:15:40
|
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.
To address the parent or trigger issue from the rule.
The JSON should be
{{triggerIssue.customfield_11122}}
triggerIssue is the part of the smart value that addresses the issue that triggered the automation rule.
Parent field is a field set on like a Story to link this to the Epic.
Then you can use {{issue.parent}} smartvalue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the right syntax:
{
"fields": {
"assignee": {{issue.customfield_11122.accountId.asJsonObject("id")}}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{
"fields": {
"assignee": {{issue.customfield_11122.accountId.asJsonObject("id")}}
}
}
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.