Forums

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

Edit Permission depending on status?

Celik Vedat May 3, 2018

Hi all,

 

can I give a specific group Edit Permission only in the status "NEW"? I'm pretty sure that this is not applicable per jira default. But with Script Runner ?

 

best,

vedat

2 answers

0 votes
Isaiah John January 17, 2024

You can do this using workflow property jira.permission.edit.group
You will need to navigate to the group in User Management then copy the Group ID that at the end of the URL.

Isaiah John January 17, 2024

I was able to prevent all user except a specific group from editing issues while they were in the "Pending Approval" status. When I add the same workflow scheme for the JWM project to a test JSM project, it gave the ability to "Add an approval step" to a status in the workflow. Now, only managers have the ability to change the Approvers and transition issues within this status.

0 votes
Manon Soubies-Camy
Community Champion
May 3, 2018

Hello @Celik Vedat,

You can do this natively using workflow properties:

  • jira.issue.editable
  • jira.permission.edit.group

This blog post may help you: Editing Closed Issues without Reopening in JIRA.

Hope this helps,

- Manon

Celik Vedat May 3, 2018

Am I doing smth wrong here? It's not working :/

BDM_PROPERTY.PNG

Tuncay Senturk
Community Champion
May 3, 2018

Hello Vedat,

If your group name is the one you typed into property value and you filled those properties to the appropriate transition, it should work.

Make sure that you already given the "Edit Issue" permission to that group in permission scheme. I mean, workflow permissions can only restrict permissions that are defined in the permission scheme. It can not grant permissions that are not in permission scheme.

Celik Vedat May 4, 2018

so this means if I grant edit permission for the group mentioned above, i have to add a property for each status where they shouldn't be able to edit issues?

Like:

jira.issue.editable = false & jira.permissions.edit.group = grp.jira-1-t-bdm-create ?

Tuncay Senturk
Community Champion
May 4, 2018

As far as I know 

  1. You should give permission in scheme.
  2. And in every status you will restrict by adding below property. 

jira.permissions.edit.group = grp.jira-1-t-bdm-create

Soporte Excentia May 23, 2019

Hi Tuncay :)

It should work when using jira.permission.edit.group = group-name

permission word without s

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events