Hi.
In our workflow it is necessary that we do allow a certain generic "untyped" issue type when an issue is created (since at this point we may not have enough information on the nature of the issue). However, after a certain step at the latest, the issue type has to be specified as one one of the regular "typed" issue types. To this end, one has to choose a type from an issue type picker, but one should not be allowed to proceed if the "untyped" type has been selected.
Is there a way to achieve this using validators an (maybe) standard third party plugins only (i.e., without tweaking the source code)?
I already tried to build such a transition using the Universal Validator from the JIRA Workflow Enhancer which seemed perfect at first. However, the plugin seems to be broken in its current state and I did not find a way to make an expression using {Issue type} work.
Many thanks in advance. Any help is appreciated.
I found a solution to this problem using the Behaviours Plugin (which is such a great plugin that i cannot praise it high enough.) In fact, it is quite easy once you know what you have to do.
To forbid a particular Issue Type on a transition screen with editable issue type picker you have to:
FormField issueTypeField = getFieldById("issuetype") if ( issueTypeField.getValue() == "9" ) { issueTypeField.setError( "Choose another issue type." ) } else { issueTypeField.clearError() }
Works great for me.
Great description of the problem and solution ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And I have to thank you for the great plugin. :) I cannot believe how much time i already wasted with this problem before i found this rather clean solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.