I have a condition of ScriptRunner for a transition "In-progress":
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
...
passesCondition = (showTransition == true);
and the above condition hides workflow button "in-progress". And it is a desired behaviour.
However, when I use post-function of another issue to make above transition "in-progress", then transition is not happened. But if I disable
a condition for a transition "In-progress", then transition is executed perfectly.
Schematically, it looks like this:
- issue A does not have workflow button 'in-progress' as there is a condition of ScriptRunner
- issue B tries to make transition of issue A, but there is no result. However, if I disable a ScriptRunner condition, then issue B makes perfectly a transition of issue A
My question is how can I make a transition in post function with enabled condition of ScriptRunner?