Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger Automation when a Jira is is in an active sprint

Bobby Moyini
Contributor
October 9, 2024

Is there a way to trigger an automation when a jira is in an active sprint AND when the Assignee field is assigned to a person?

Currently I have manual triggers that create dev subtasks and qa subtasks when the assignee and assigned tester fields are assigned. Team members trigger them manually after they pick up their tasks and a sprint has started.

I am trying to see if I can automatically do this for them when a sprint is started. I am assuming I will need to use JSON in the more options area to accomplish this task IF it is possible.

2 answers

1 vote
Tobias H
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2024

Hi @Bobby Moyini!

Which event do you want to be the trigger?

  1. When a Sprint is started
  2. When an issue, in an active sprint, is assigned to a user?

 

For the first scenario, you should be able to do it with something along these lines, this is just very basic so it would do best to be filled out with more if statements to not have it trigger all the time:
When Sprint is started (for project X)
Branch on JQL: project = SSH AND sprint in openSprints() AND assignee is not EMPTY
Then Create Subtasks

Screenshot 2024-10-10 at 00.29.47.png

 

The second scenario could look like this instead:

When Issue is assigned
IF the issue matches the JQL (that it's in an active sprint in the project, for example)
Then create subtasks on that issue

Screenshot 2024-10-10 at 00.33.24.png

 

Hope that gives some new perspective and good luck! :D

0 votes
Jack Brickey
Community Champion
October 9, 2024

What about triggering on issue assigned and a condition of the issue being in active sprint?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events