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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.