Phoning a Friend!
I have been trying to make this automation work for too many hours and need help! I know it can be done, but I am missing something. I found a bunch of examples, but none worked unfortunately!
Steps:
Sounds easy.. but I am STUCK!
Hi @Isabella Musial ,
Below is my suggestion of how I'm currently updating the Team field at my end using Jira automation.
Reference: https://developer.atlassian.com/platform/teams/components/team-field-in-jira-rest-api/
Hope this helps.
First, your rule is branching to "Most recently created issue" but no issues are created during the rule; that is the purpose of that branch type. The branch may be removed.
Next, your rule is referencing what appears to be a Created Variable by it has not been defined anywhere.
Assuming your "Team" field is customfield_10101, please try this:
{
"fields": {
"customfield_10101": "{{issue.parent.customfield_10101.id}}"
}
}
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.
Thanks! I was hoping you would respond!
Should I replace the team # with "id"
{{issue.parent.customfield_10101.id}}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still not working - used the straight code and tried to replace with team # (4379)
{{issue.parent.customfield_10101.id}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please post an image showing the audit log details from trying to run the rule.
Also, have you confirmed that is the correct custom field ID for your field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, customfield_10101 is correct.
I tested on 2 different projects - neither inherited the Epic's team name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just checked the public backlog and it appears copying the Team field with an automation rule using the Server / Data Center version is not supported yet:
https://jira.atlassian.com/browse/JIRAAUTOSERVER-159
https://jira.atlassian.com/browse/JIRAAUTOSERVER-779
https://jira.atlassian.com/browse/JIRAAUTOSERVER-1093
The JSON approach appears to only work with Jira Cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well that is a drag! According to this, it can be done.
https://community.atlassian.com/t5/Jira-articles/Automation-Set-your-Advanced-Roadmaps-Team-automatically-when/ba-p/1761588
We are technically in a cloud environment - but internally only .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At that top of that article from @Walter Buggenhout , it describes it is for Jira Cloud. There are comments asking about Server / Data Center, but no responses from anyone who got it to work.
I did find a knowledgebase article for Server / Data Center where setting the Target Start and End succeed with rules and JSON, but there is no mention of Team...which led me to search in the backlog :^)
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.