Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Vineela Durbha
Contributor
July 8, 2021

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

1 vote
Vikrant Yadav
Community Champion
July 8, 2021

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

Vineela Durbha
Contributor
July 9, 2021

@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.

Vikrant Yadav
Community Champion
July 9, 2021

@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!

0 votes
Fabian Lim
Community Champion
July 8, 2021

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

Vineela Durbha
Contributor
July 8, 2021

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