Created a custom field named 'Went back' and in the transitions I change its status with post function to 'Went back'.
Now, if the issue is closed (Done) and the 'Went back' field is clear it means that it moved only forward in the process. In these cases I want to change it's status to 'Great job'
How can I do that in JQL?
I wish to write JQL in the last transition (to DONE) but I don't know how to write the condition.
JQL is for finding issues, not updating them.
I am sorry, but I am struggling to understand what you are saying here - the word "status" seems to be being used to say two different things, and I cannot quite see what the intention is. When you say "custom field status", do you mean the status of the issue, or the value of the custom field? (value, not status)
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events