I have created an automation to "create stories with sub-tasks when creating epic" -> picture 1. The idea behind the automation is to build logical structure for work flow and resource management.
Epic = Project
Story = Key Milestone
Sub-Task = Daily objectives/induvial tasks of any key milestone
Now, I am trying to assign an individual team to each Story -> picture 2. However, when I use the "edit issue fields" it only updates the Epic and not the Story. The JSON code works just fine for updating the "teams field" but it updates the Epic and not the Story. I only want to update the "teams filed" of the Story and not the Epic.
@Anandhi Arumugam _Cprime_ I didn't see your answer but I figured it out by trail and error... maybe this will help others in the future, but you are correct. In order to update stories within Epics you must create a branch and assign the branch to the "most recently created issue" and then you can use the same "edit issues field" as shown in the original post. You duplicate the branch for each Story in the chain. Also remember to use the correct "Team ID", this can be found at the end of the URL of each teams page.
Hi @daniel.nordal -- Welcome to the Atlassian Community!
For the rule you show, why not set that field at the same time the Story is created? The advanced edit with JSON is available in the Issue Create action
The branch to most recently created issue would then be needed only to create the Subtasks under the new story.
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.
@Bill Sheboy I had not thought of that... but it also works and I have confirmed it works... and it is a much cleaner automation. It even has improved the runtime of the automation.
Automation with branch method - 25s runtime
Automation with JSON in Story - 22s runtime
Also, I did not need to use branch for Sub-Tasks as you mentioned. I expect this is because I have created a "New Variable" before creating Sub-Task which allows this automation to run correctly. For fun I have changed the automation to use branches for Sub-Tasks under Stories and removed the (Re-fetch and New Variable) Commands. For this the runtime has improved further to 20s (picture below). Basically, this seems to be a more simple automation for Jira to run. Thankyou.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @daniel.nordal Use a branch/related issues and pick Stories (or other issues in the Epic) to update the Story's fields. Hope this works for you.
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.