I have a workflow that has steps that, for some issue types, I don't want the user to be able to push the status transition button.
I saw in my conditions for the transition an option for "Hide transition from user". But this hides it for all issue types.
Is there a way to do this scoped to a specific issue type?
What @Mohamed Benziane said, or you can use a scripted condition for your transition, like so:
List<String> forbiddenIssueTypes = Arrays.asList("issueType1", "issueType2", "issueType3")
return !forbiddenIssueTypes.contains(issue.getIssueType().getName())
You could use the transition condition of "Only users in any of *group name here* group can execute this transition."
In this instance, if they cannot use it they cannot see it. this is how I have set some things up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a workflow only for this issuetype and make you condition as you want. You can copy your original workflow to work on it.
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.