Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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 edited

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
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Jira Events