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 Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,799 views 2 7
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