Forums

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

Workflow condition: user is in group *can't* see transition

Hayley Rodgers
Contributor
February 22, 2022

Hello 👋

I have a workflow with two main paths. Either a person can submit their work for review or go straight to done, as shown here: 

Screen Shot 2022-02-23 at 12.14.33 pm.png

I've currently got a condition on the transition from "in progress" to "review" so that only users in group "trainees" can make that transition. 

On top of this though, I want to make a condition on the transition from "in progress" to "done" so that users in the group "trainees" can't make that transition. I know I could make another user group with everyone who isn't a trainee, however, I don't want twice the user group admin. 

Is there a solution to this? I tried building my own JMWE condition but couldn't figure it out. 

 

Thanks so much!

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
February 22, 2022

Hi @Hayley Rodgers 

It’s really almost the same as the other condition, just with a ! in front:

!user.groups.includes("trainees")
Hayley Rodgers
Contributor
February 22, 2022

Incredible, that does the trick! Thanks so much :) 

Suggest an answer

Log in or Sign up to answer