JIRA automation - trying to trigger a rule only once.
Asked by Jean Francois Gelinas:

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.png](https://community.atlassian.com/t5/image/serverpage/image-id/169963iD06380600B23A689/image-size/large?v=v2&px=999 "Image_Automation.png")![ImageAutomation1.png](https://community.atlassian.com/t5/image/serverpage/image-id/169964i53D9DC079B5F399C/image-size/large?v=v2&px=999 "ImageAutomation1.png")


Answers:
author: Sherry Goyal
body: Hello [@Jean Francois Gelinas](/t5/user/viewprofilepage/user-id/136768)

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](https://support.atlassian.com/jira-software-cloud/docs/debug-a-rule/).

Thanks  
Sherry


author: Gaurav
body: Hello [@Jean Francois Gelinas](/t5/user/viewprofilepage/user-id/136768)

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.

comments: author: Jean Francois Gelinas
body: Hello [@Gaurav](/t5/user/viewprofilepage/user-id/1248589)

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.png](https://community.atlassian.com/t5/image/serverpage/image-id/170431i0B2BBEF6C9C9173B/image-size/large?v=v2&px=999 "Automation 2.png")![Automation.png](https://community.atlassian.com/t5/image/serverpage/image-id/170430i4CC093CC8C05B2D9/image-size/large?v=v2&px=999 "Automation.png")


Tags: automation

cloud

confluence-cloud