I mean without editing or creating, the existing stories in a particular board, I like all of them to have a sub-task named "Build" for example.
Is this automation or like bulk edit?
If your goal is to run the automation only once, you can achieve this by using a Manual trigger in your automation rule. Here’s how:
Set up the trigger: Choose Manual trigger from the "work item" as your trigger. You can also limit who can run the rule by restricting it to an admin group (see the screenshot below).
Add branching: Insert a Branch rule / related issues component and set the Type of related issues to JQL.
Write your JQL query: Construct a query that reflects your board's filter and adds conditions to:
Exclude completed work items
Limit the results strictly to issues of type Story
I recommend testing the query separately to ensure it returns only the intended results.
Add the action: Within the branch, add an action to Create a sub-task with the summary set to "Build".
Save the rule: Give the automation rule a clear, descriptive name and save it.
Run the automation: Navigate to a work item on your board, open its issue view, and click the Actions dropdown (next to the Status field). You’ll see the option to run the manual automation from there.
Disable the rule: After running the rule once, make sure to disable it to prevent accidental re-use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Akash Singh
The JQL branch approach will not work if the rule is triggered from a work item on the board and to which you want to add the subtask.
The reason is the JQL branch has a hidden behavior that automatically excludes the trigger issue's key from the JQL expression. (This is one challenge with posting bot-generated answers: they do not include this information.)
The workaround for this behavior is to add that specific subtask separately:
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.
Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!
Help us plant more trees
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.