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!
Community moderators have prevented the ability to post new answers.
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.
Community moderators have prevented the ability to post new answers.
Apparently this solution stopped working - JIRA makes us now to choose fields and do it from the UI, rather than from the code snippet in Advanced options. Is there any workaround?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This topic has been locked because the thread has become a bit dated. If you’d like to keep the conversation going or have additional questions, we encourage you to start a new topic. You can read more about necro posting (“raising threads from the dead”) in our Community Guidelines.
Thanks!
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.
Thank you, @Bill Sheboy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.