Forums

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

Automation for issue moved out of the sprint

kate.yoak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2022

I am trying to create an automation:

When issue is moved from active sprint to a future sprint, add a label called 'delayed'.

To do this, I need to inspect the value we have changed from:

{{changelog.sprint.from}}

However, I cannot determine the state of that sprint. 

I tried a JQL condition:

      changelog.sprint.fromString in openSprints() - does nothing

      {{changelog.sprint.fromString}} in openSprints() - broken syntax

I tried advanced field compare with smart value:
{{changelog.sprint.from}} but I have nothing to compare it to.

What are my options?

2 answers

1 vote
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2022

Hello @kate.yoak 

Welcome to the community.

@Bill Sheboy provided a response on another post that you may find useful. The title says "when added to", but the content is asking about automation for both issues being added to and removed from sprints.

https://community.atlassian.com/t5/Jira-Software-questions/Can-Automation-for-Jira-detect-when-Issue-a-Added-to-Open-Sprint/qaq-p/1459883

0 votes
Johnny Mon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 21, 2023

I posted my solution in another Community Q&A regarding a rule that sends a notification when a sprint is added or removed from an issue

My posting has a link to my Github account that contains the exported A4J rule, screenshots of the rule, and a demo recording.

We can use it as our base rule and modify it to fit your use case.  The rule can find the 'changed' sprint and send a notification if it is Open.  We can change it to send a notification if it is Future. 

I recommend first having it working in your test system and then making the adjustment for your 'future' use case.  Let me know if you help with adjustments.  

Suggest an answer

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

Atlassian Community Events