Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Setting all visible fields except for a few, to read-only. But only for a specific group

We have a need to prevent members from a specific group from editing any fields on an issue, except for a few custom ones.

We are using JIRA server and have ScriptRunner in place.

My initial thinking was, enumerating all the fields that are visible on the current issue and setting them all to read-only except for those they are allowed to edit, IF the current user belongs to said group. 

Assuming I'd be using the ScriptRunner Behaviour, I was trying to figure out the Initializer Script code to run on-load, to set all fields to read-only. Then... i'll configure the wizard to make the 5 or so fields editable afterward

I'm not finding code that will set all fields (system + custom) to read-only. Does someone have a way of doing this?

Also, is there a better way to achieve this?

Thanks much,

Ty

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you