Hi all,
Is there a way to create a new issue inside a branch [I know how to do this], and then transition this created issue?
I would normally achieve this with branching, but because issues are created inside a branch, I don't know how to "sub-branch" a branch.
Some more background info:
-> I have tried to achieve this using a separate rule that is triggered every time an Epic 2 is created. The rule transitions all children issues to Status B. However, because rules/branches run independently, some children issues are copied after this second rule has finished and they remain in Status A.
-> I have also tried to use a "for all created issues" branch (below), but again because branches run independently, some issues created in other branches are missed and remain in Status A.
Hello @Iñigo Ruiz
You might consider using a Label on the newly created issues to flag them as ones that need to be transitioned. Then create a second rule that is triggered by Issue Created, with a condition to look for that label, transition the issue if present, and then remove the label.
Hi Trudy! This is easy and it worked. Thanks 😊
The only problem is that when Automation removes the label, Jira sends an email notification to the Assignee because of our notification scheme (Edit Issue action). The only solution I see is to keep the label.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Iñigo Ruiz
To do this with one rule...after the issue is created, the rule could use the Send Web Request action to call the REST API function to transition the issue, passing the {{createdIssue.key}} and the correct transition id for the workflow. As a disclaimer, I have not tried this approach in a rule before.
Hardcoding the transition id would be simple, but if you need this to handle possible workflow changes in the future, an extra step is needed to first call the REST API to get the available transitions for the issue, search for your status, and then extract the transition id.
If you want to try this approach, here are some references:
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.