Forums

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

Can we restrict access for a custom field in JIRA to certain user/group?

MSundaram January 31, 2018

We have a custom field - "severity" for which we have values 1,2,3 ,4  [ 1 is the top most priority issue]

Is there a way that only  a "qa_leads" group can raise severity-1 issue and for other groups/users either this value should be invisible or disabled? 

 

2 answers

2 accepted

1 vote
Answer accepted
Thomas Schlegel
Community Champion
January 31, 2018

Hi, 

there is no security on field level in Jira.

A possible workaround:

  • remove the field from the create and edit screen, leave it on the view-screen
    (with such a configuration, noone is able to edit this field)
  • create workflow transitions on every status "set severity1". The transition should have the same status as target where it came from.
  • set the field with a postfunction to "1" within this transition
  • set a workflow condition, so that only users of group "qa_leads" can see this transition
  • create more workflow transitions with values 2, 3 and 4 - but don't set a condition, so that every user can set values 2, 3 and 4
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.
January 31, 2018

A slight variation would be to only have two transitions, 1 for "set to 1" and another that goes to a screen with the drop-down, and has a validator on it for "when 1 selected, only pass if user in qa_lead group"

MSundaram January 31, 2018

Thanks.. Let me try this approach.. 

1 vote
Answer accepted
Alexey Matveev
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.
January 31, 2018

You would need an add-on for it like Power Scripts or ScriptRunner.

In Power Scripts you could use Live Fields. You can find more info here:

https://confluence.cprime.io/display/TR/Restrict+a+select+list+to+not+show+certain+values

MSundaram January 31, 2018

Thanks.. It works.. But i was looking for a solution from a 'free' add-on.. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events