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 votes

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 votes

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
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,379 views 17 10
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