How to set conditional Issue edit permission

n_banupriyanka April 29, 2020

Condition is :: reporter can edit the issue till it is unassigned

Once it is assigned to someone else only current assignee can make any changes/edit the issue

2 answers

1 accepted

0 votes
Answer accepted
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 29, 2020

Hi @n_banupriyanka 

This is very interesting use case.

  • What we can do is use a project role called "Issue Editors" or whatever makes sense.
  • Assign the Issue Edit permission to this role. Now anyone who is part of this role can edit the issues.
  • On the create transition, use a Post Script function to add reporter to this "Issue Editors" role.
  • Create a listeners for "Issue Assigned" event and run a script to remove current reporter from "Issue Editors" role.
  • You can keep the issue edit permission to current assignee.

This is what I can think of using ScriptRunner (on Jira Server).

I hope it helps.

Ravi 

0 votes
n_banupriyanka May 1, 2020

Hi @Ravi Sagar _Sparxsys_ 

Thank you for suggestion.

I am new with groovy script and I am having difficulties in writing a script.

Please help me with script.

 

Kind Regards, 

N Banupriyanka

Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 3, 2020

Hi @n_banupriyanka 

I made one video on modifying Project role last year. There is a code example as well for you reference. I hope it helps.

Ravi

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events