Forums

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

JIRA automation - trying to trigger a rule only once.

Jean Francois Gelinas
Contributor
November 18, 2021

I'm not sure its the right way to do it.

Basically, when someone pulls a dropdown (phase de projet - project phase to exploratoire - exploration) AND the rule in the issue was never executed, I want to trigger the creation of 5 subtasks. 

At the end of my rule, i set the ruleexecuted property to "true" if the rule is executed.  For some reason, this rule will always execute if I pull the right option in the dropdown (skipping the property.ruleexecuted equals "Vide"-"Empty" ...)

Is it a translation issue (issue to ticket) ? For some reason, half of my JIRA is in french and the other half is in english (cloud version) despite my parameter setted to "English US".  My company is using french but its easier for me tu use english since all the forums and docs is in english.  Do i need to use "Vrai" ("True") instead ?  Translating "property" is a nightmare to be honest

 

Thanks for your time and sorry for my poor english.Image_Automation.pngImageAutomation1.png

2 answers

0 votes
Sherry Goyal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2021

Hello @Jean Francois Gelinas 

Can you try using "Re-fetch issue data" action before your if condition and see how it goes? Looks like you need to re-fetch the issue to read the value you set via rule.

Aso try logging {{issue.poeperties.ruleexecuted}} by using "Log action" before if condition to see if this value was picked up or not? You can take debugging tips from here.

 

Thanks
Sherry

0 votes
Gaurav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 18, 2021

Hello @Jean Francois Gelinas 

As I understand, the property should be used as {{issue.ruleexecuted}}. I would suggest you try this and share the findings.

Also, please confirm if this is a property or a custom field as I was unable to find it under properties or as a smart value.

Kindly accept the answer if this helps.

Jean Francois Gelinas
Contributor
November 22, 2021

Hello @Gaurav 

 

I tried to run a much simplier (stupid) example using the ruleexecuted property.  In the first image, if I try to use the {{ }} to set a property, I'll get an error.

 

Basically, in this example, if I'm changing the assignee, I wanna create a subtask.  I set the ruleexecuted to true, and test this condition with a "if condition".  As you can see, I dont enter the condition in the if block.  SOmething is wrong and I really cant find it hehehe.

 

Thanks a lot for your time I appreciate it.

 

Automation 2.pngAutomation.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events