Forums

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

How can I prevent users from deleting issue links? (Permissions, ScriptRunner, etc?)

stringsonfire
Contributor
May 12, 2020

I'd like to restrict certain user groups from deleting issue links (but not from creating issue links).

 

It looks like Issue Linking permissions aren't itemised in Jira, so is there a way to separate out Delete?

 

Alternatively, could I use ScriptRunner to hide the Delete Issue Link UI elements based on if the user is in a given project user group? https://scriptrunner.adaptavist.com/latest/jira/fragments/HideUIElement.html

1 answer

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.
May 12, 2020

Hi @stringsonfire 

Yes you can use behaviours to make it readonly field. Take a look at this example here.

This will make the issue link readonly but people can still use the plus sign to add links but you can also use script fragments to insert a css to hide that plus sign.

I hope it helps.

Ravi

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 12, 2020

Behaviours work only on the create/edit screen. For making sure users are not able to remove the links. You can hide the cross icon next to the issue links by inserting a custom css for the view issue page.

Like Daniela Buffarini likes this
Henry Avila
Contributor
November 10, 2020

In Cloud, some alternative for prevent delete issue link ?

Daniela Buffarini December 10, 2020

Very grateful @Ravi Sagar  for making a video to show us your solution
youtube: 
ScriptRunner for Jira - Make Issue Links Read Only 

Like Ravi Sagar _Sparxsys_ likes this
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.
December 10, 2020

I am glad you find it useful.

palina_nutrinohelath_com
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 1, 2021

In Cloud, some alternative for prevent delete issue link ?

Claudio Menegusso February 10, 2021

Same here. Looking for the same solution.

Suggest an answer

Log in or Sign up to answer