Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

"Hide transition from user" for specific Issue Type

Stephen Schaff
Contributor
October 1, 2018

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?

3 answers

1 accepted

2 votes
Answer accepted
Ivan Tovbin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2018

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())
2 votes
Scott Robertson
Contributor
October 2, 2018

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.

1 vote
Mohamed Benziane
Community Champion
October 1, 2018

Create a workflow only for this issuetype and make you condition as you want. You can copy your original workflow to work on it.

Suggest an answer

Log in or Sign up to answer