Jira Project Role

I would like to add logic to my groovy script to check if the login user's project role (or group) belong certain role.  I would appreciate anyone's help.

3 answers

0 vote

Sorry, you've effectively said "user's project role belongs to role".  It always does, they're the same thing.

Could you explain what you're looking for?  I don't understand what you're asking for here.

Thank you for looking it for me. I want to put logic to display different fields based on the role of the login user. For example, I would like to display fieldx for Project Role1, displaying fieldy for Project Role 2.

Ah, ok, you hadn't mentioned fields before. This makes sense. Jira does not do field level security. See https://jira.atlassian.com/browse/JRA-1330 for the discussion, workarounds and reasons Atlassian won't be doing it. Although to save you some reading, the answers are broadly: - writing fields that can do it - botching it badly with javascript - using the field security addon from Quisapps - partial (but often good enough) implementations with the Jira Script Runner addon

0 vote

Hey there,

You can try the example shown on this post at Atlassian Answerssmile

 

-- Arthur Gonçalves

@Nic Brough,

Thank you for looking it for me.  I want to put logic to display different fields based on the role of the login user.  For example, I would like to display fieldx for Project Role1, displaying fieldy for Project Role 2.

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

803 views 2 19
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you