So I've set up a script listener which transitions the issue to "In Progress" when it gets assigned. This transition should not be visible as a workflow button for the user as it should only run automatically.
When I hide the transition with the according condition, the listener doesn't transition the issue anymore. After removing the condition, it works again.
Thanks for any help.
What do you mean exactly by mutually exclusive? I thought maybe there is a permission issue but I'm not too sure about it since it works when the button is visible.
I've attached a few screenshots of my workflow and the listener. Maybe I'm not using the hidden condition correctly?
Yes I'm using the "Hide transition from user" condition.
I've posted a screenshot of my listener above. Can you see it?
It looks like this:
Note: Change status to "In Progress" when issue is assigned for the first time
Projekt key: All projects
Events: Issue Assigned
Action: Vorgang zuweisen (121)
Additional issue actions: none
AFAIK, there are two conditions with similar name. The Hide transition from user is built-in in JIRA and returns false. There is similar condition Hide transition from JMWE that investigates call stack to recognize context.
The former could be used only in JIRA Automation Add-on, where the conditions/validations could be switched off when transitioning.
As I remember there is not such functionality in Scriptrunner. Correct me, if I am wrong.
Jozef is right, in that the current version of ScriptRunner does not offer the ability to skip conditions, validators or permissions. I'm told this change would be relatively simple, so we should have it in our backlog. In the meantime, you could use the JIRA automation add-on.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG