I am trying to set up an automation that copies the value of the "team" field from the parent (Epic) when a new child issue (Task/Bug) is being created.
Even though the documentation about teams says that you can now use the "team" field in automation, this is not possible when it comes to the "Edit Issue" action, the field does not show up in the selection menu.
For the action "Field value changed" the "team" field is available, though.
I am grateful for any advice that will help set up the automation. Thank you!
Hi @mark_liebold ,
You can try to update by Additional fields like below
{
"fields": {
"Team": "{{issue.parent.Team.id}}"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Unfortunately this didn't work for me - it says "Additional fields contains invalid field(s) in 'update' or 'fields' section: Team" - but I definitely have the "original" Jira team field, not a custom one.
Could you guess what might went wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using the Custom Field's ID? Usually that's a more static option than the field name (just in case there's another Team field).
Otherwise, could you provide a screenshot of your Action?
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the Advanced section and JSON to do this.
For example, to modify an Epic's children when the value changes at an Epic level...
---
A few notes...
Let us know what you think!
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! I set up another automation where it was needed to change the "team" field in the children when it got modified in the parent and your advice helped me a lot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @mark_liebold ,
Could you please try this in the edit issue action and let me know if it works
{
"fields": {
"team": "{{issue.epic.team.id}}"
}
Regards,
Mayuresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the help, it worked. However, I went with "parent" instead of "epic" in the JSON.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is anyone aware of a feature request to make this important "team" field available as a field to edit in automation?
The workarounds above are very helpful, but an admin shouldn't have to go through all the hassle to do something like this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Josh
There are several open suggestions related to adding the Team (and other missing fields) to the dropdown list for automation actions. Here is one of them:
https://jira.atlassian.com/browse/AUTO-525
Kind regards,
Bill
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.