Forums

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

Is it possible to restrict access depending on the screens?

Laura Vallejo
Contributor
October 17, 2018

I have a workflow where different screens are used and showed to differents users. I need to limit the access to several edition screens just for a user role.

So, is it possible to limit the access to the edition screen (it is showed when user makes a transition) depending on the user role?

Other solution could be limit the posibility to make the transition depending on the role, couldn't be?

Thank you!

1 answer

1 vote
Nic Brough -Adaptavist-
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 17, 2018

Screens are determined by workflow and issue screen schemes, not by user.

You're right in your solution though - you can set up transitions that duplicate, but have different screens and conditions. 

For example, have 

Open -> Closed (1), with Screen 1, and a condition of "only group X"

Open -> Closed (2), with Screen 2, and a condition of "not group X"

(This is an over-simplifciation, as you'd need a bit of code to provide an explicit "not group X", but it's intended as an explanatory example, not full setup)

Laura Vallejo
Contributor
October 17, 2018

Aren't there any property associated with transitions or screens to setup it?

How could I code it? through a plugin? Could you recommend me one?

Thank you very much!

Nic Brough -Adaptavist-
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 17, 2018

You don't need any coding to do most of this, just add the transitions, screens and conditions to your workflow. 

I've used a condition of "not group X" to keep the example simple, but that might not be the right condition for your needs.  If it is though, I would reach for ScriptRunner, as it can put in conditions like that with only minimal coding (my instinct is you might be able to do that in one line)

Laura Vallejo
Contributor
October 17, 2018

It could be sample if I show you the workflow I have implemented.

"Definir tratamiento" screen could be pop up through red square transitions.

 

Workflow - roles.PNG

Nic Brough -Adaptavist-
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 17, 2018

Ok, so set up the transitions and apply appropriate conditions to them.

Laura Vallejo
Contributor
October 17, 2018

I have realized where the condition options are. Thanks for your help!

Suggest an answer

Log in or Sign up to answer