Forums

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

Automation : How to check if fixVersion is in releasedVersions as a condition?

Éric Dumesnil July 18, 2023

Hi !

I have an automation running when a closed issue is reopened that clears the current fixVersion of the issue and comments on the last fixVersion that was set on this issue before clearing it, but I'd like this to run only when the fixVersion is Released. Meaning that if we were to reopen an issue before a fixVersion is released, this automation would not run.

Current setup:

Screenshot 2023-07-18 at 3.31.44 PM.png

After the "if fixVersion is not empty", I would like to add the "if fixVersion is Released" condition.

---

Context: We're currently using fixVersion with swimlanes to plan releases and I would like this automation to not throw sticks in our wheels 😅 but I can't find the info online.

Please help! Thanks!!

 

2 answers

1 accepted

0 votes
Answer accepted
Laurie Sciutti
Community Champion
July 18, 2023

Hi @Éric Dumesnil ~ this should do the trick!

fixVersion in releasedVersions()

Éric Dumesnil July 18, 2023

2 follow-up questions 😅:

  • is this a JQL condition?
  • would this check if the fixVersion that is currently set on the issue matches this?

I have a feeling that I would need to specify {{issue.fixVersion}} in releasedVersions, but I'm not sure I can do that.. but then again, what do I know.. ahah

 

Éric Dumesnil July 18, 2023

I think I answered myself there....

That would be the condition, right:

Screenshot 2023-07-18 at 3.50.02 PM.png

Like • Laurie Sciutti likes this
Laurie Sciutti
Community Champion
July 18, 2023

@Éric Dumesnil ~ yep - that's a JQL statement.  Just add another condition like shown below...

 

Snag_2fe9b28.png

Laurie Sciutti
Community Champion
July 18, 2023

Yes ~ but you shouldn't need the smart value since your rule is triggered on an issue transition:  the rule interprets the fix version for each issue that is run in the rule...

Like • # people like this
Éric Dumesnil July 18, 2023

It works with the JQL you specified, and not with the smart-value like in my screenshot.

Thank you Laurie ! 😄

Like • # people like this
Laurie Sciutti
Community Champion
July 18, 2023

You're very welcome, @Éric Dumesnil !

Like • John Funk likes this
0 votes
Olita vilkausa
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!
July 18, 2023

Jap

Suggest an answer

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

Atlassian Community Events