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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,001 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot