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

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

How to restrict edit permissions to a component lead in a project

HI Team,

 

I am looking for a way to restrict edit button for a certain status to component lead. I tried something like jira.permission.edit.lead = component-name under properties of a workflow status.

but it is not working. Can someone help on how this can be achieved.

2 answers

Hi @Vineela Durbha  Components Lead is only one user for each Components, right. In this scenario it's better to use " jira.permission.edit.user = your_user

More specifically, you can  set the following property on each status:

jira.permission.edit.group = your_usergroup OR
jira.permission.edit.role = your_userrole OR
jira.permission.edit.user = your_user

 

Or create a group of Components Leads and use :- jira.permission.edit.group = your_usergroup

Thanks

@Vikrant Yadav 

Thanks for your suggestion. Is there not something which automatically picks up component lead instead of writing user? This is because everytime component lead changes we have to make these changes, so looking for a way to add lead rather than user.

@Vineela Durbha  Unfortunately, There is no permission type for Components Lead. 

jira.permission.edit.lead --- This is for Project Lead. 

If you have Script Runner plugin, you can set behaviour on workflow or having Power Script plugin then use solution suggested by @Fabian Lim . 

OR

You can apply condition on this transition and put field on transition screen. So that only Lead can move status and fill data in field or edit issue.

 

Thanks!

Hi @Vineela Durbha

For this functionality we use the following Power Scripts plugin with Live Fields: https://confluence.cprime.io/display/JJUPIN/lfExecuteJS where it uses javascript to hide fields or sections in the issue view.

Basically you would need s a script that identifies that the ticket is in status = closed and then hide it for certain users and groups.

In our organization we use it to hide the Edit button when a ticket is in "closed status" or show only the "edit button" to certain groups at a specific status. 

Cprime provides great support and would help you if your are stuck.

Regards,

Fabian

Hi @Fabian Lim 

Thanks for your suggestion. But we dont have cprime as of now and hence I am looking for a way to apply conditions under properties of workflow conditions.

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