Smart value of trigger issue in automation

Eliyahu Klein January 9, 2023

Hi,

I created an automation that created a value in a short text field.

The trigger for automation is starting a new sprint (trigger = start sprint). I would like the value that enters the text field to be the name of the sprint that created the trigger.

If I use a smart value of type: {{sprint.name}} the field returns me all the sprints that exist in the "sprint" field, including those that are already closed.

image.png

Is there a smart value that returns me only the name of the trigger sprint or at least only the name of the open sprint?

 

 

2 answers

2 accepted

1 vote
Answer accepted
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2023

Hi @Eliyahu Klein 

Can you provide a screenshot of your result? And the rule itself?

I replicated this rule like this:

  • Trigger: Sprint Started
    • Board = <Board Here>
  • Branch: Related Issues
    • Type = Issues in the Sprint
      • Branch-Action: Edit Issue
        • Description = {{sprint.name}}

^ I tested this with Issues that had been in a previous Sprint, and were in the new Sprint being started - and the rule was successful, entering only the new Sprint's name into the Description field, no old Sprint names.

So it works for me, as you need it to!

Ste

Eliyahu Klein January 9, 2023

You're right.

Now, I want to run automation even without a sprint trigger (scheduled trigger).

Do you have any idea how I find active sprint smart value?

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2023

Hi @Eliyahu Klein 

If you're not using a Sprint Trigger, I don't believe it's possible to locate the active Sprint via smart values.

There is a feature request for it though - check out AUT-648 

Ste

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2023

Hi @Eliyahu Klein 

Awesome! Thanks for sharing the link back in this question, it might help others in future!

---

Just for future visibility (for anyone else who finds this question), I tested a few of the options in the linked question above, and another question which was linked to from there.

I found both of these smart values seemed to work:

  • {{#issue.sprint}}{{#if(not(isClosed))}}{{name}}{{/}}{{/}}
  • {{issue.sprint.last.name}}

If neither of these work for you, there are a few other options in those linked questions you can try :)

Ste

1 vote
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2023

Hi @Eliyahu Klein 

 {{sprint.name}} returns only the sprint that started and which triggered this automation event. I've tested it on my instance and it yielded only 1 sprint (out of 3 that are ongoing)

sprint name.png

Please share more details and screenshots in order to be able to help you.

Eliyahu Klein January 9, 2023

OMG You're right. What I didn't notice, is that I entered the value: {{issue.sprint.name}}

Only one word but It changes the whole picture.

Thank you very much!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events