Forums

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

How to hide "Delete Link" icon from the view screen in jira?

Sushma
August 21, 2019

Hi All

I want to hide the "Delete link" aui icon from the issue view screen.Is it possible using script runner?

hidedeletelink.PNG

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
PD Sheehan
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 Champions.
June 11, 2021

That's possible, but you'll have to keep your country/user association right in the script.

 

Something like this:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.customfields.option.LazyLoadedOption


def countryUserMap = [
countryName1:user1,
countryName2:user2,
//etc
]
def categoryCf =ComponentAccessor.customFieldManager.getCustomFieldObjectsByName('Category').first()
def countryCf = ComponentAccessor.customFieldManager.getCustomFieldObjectsByName('Country').first()
def category =(issue.getCustomFieldValue(categoryCf) as LasyLoadedOption).value
def country = (issue.getCustomFieldValue(countryCf) as LasyLoadedOption).value
if(category == 'xxx){
def assignee = ComponentAccessor.userManager.getUserByName(countryUserMap[country])
issue.assignee = assignee
}

Muddassir Quazi
Contributor
June 12, 2021

Hey Peter,

Will try this , thanks.

Muddassir Quazi
Contributor
June 12, 2021

Hi Peter,

Thanks for solution, that really worked for me.

Thank you.

TAGS
AUG Leaders

Atlassian Community Events