Forums

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

What's the smart value for a Jira sprint in an automation rule?

Karsten Silz October 6, 2024

Through automation in my Jira cloud project, I want to assign new issues to a sprint called "Triage" in my project. I don't know how to reference this sprint in the automation action correctly.

Jira automation only offers two standard values for the "Sprint" field in the "Edit issue" action:

 

Jira automation sprints.png

 

If I pick "Next Sprint (YT board)", it works. But this relies on my "Triage" sprint being the next sprint, which it won't be soon anymore.

Now, here's me trying to use smart values to put in the sprint "Triage". It's ID is "7" in my project (3). You also see my trigger (1) and my action (2):

 

Jira automation.png

 

I tried {{sprint.name.match("Triage").id}} and {{sprint.name.match("Triage")}} and {{"Triage"}} and {{"7"}} and {{7}}.

None worked. All gave me an error in the automation rule audit log: "No fields or field values to edit for issues (could be due to some field values not existing in a given project)".

 

So, what's the smart value for the sprint "Triage"?

1 answer

1 accepted

5 votes
Answer accepted
Manoj Gangwar
Community Champion
October 6, 2024

Hi @Karsten Silz  welcome to the community! 

Could you please try only 7 in the sprint field and check? 

Karsten Silz October 6, 2024

Jira doesn't accept a 7. Only one of the two options or a smart value.

Manoj Gangwar
Community Champion
October 6, 2024

Add a create variable component to your automation, assign the sprint Id to it and then you can use that variable to set the sprint like this:

  1. Screenshot 2023-11-07 at 2.32.42 PM.png Screenshot 2023-11-07 at 2.34.44 PM.png
Like • sachin.gupta likes this
Karsten Silz October 6, 2024

Thank you! That did work!

Like • 2 people like this

Suggest an answer

Log in or Sign up to answer