Forums

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

Simple JMWE groovy condition for issuetype AND project when workflow is shared

Stephen Letch
Contributor
November 24, 2020

Hi

 

I have a workflow shared by multiple issue types and multiple projects. I need a condition on the blocked status that hides the transition only when an issuetype is a Story in the QA project.

 

Everything I'm trying is either working too much or too little. in terms of affecting other projects or issuetypes. Think I just need to get my operators right.

 

Thanks

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
November 24, 2020

What do you mean by "a condition on the blocked status"?

If you just want to hide a transition based on the issue type, you can create a Scripted (Groovy) Condition with a script like:

issue.get("issuetype").name != "Story" || issue.get("project").key != "QA"
Stephen Letch
Contributor
November 26, 2020

Yeh that's what I ended up going with in the end, was trying to use &&, was surprised OR didnt blanket stop everything story OR everything QA

Suggest an answer

Log in or Sign up to answer