Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,130
Community Members
 
Community Events
168
Community Groups

JIRA 7 Script Runner Behaviod Plugin - hide issue link type options by name

Hi,

 Need some help in hiding issue link type options by name. I have "Easy Links for JIRA" add-on deployed in our JIRA 7 server. It allows to pick multiple issues as links. I have to create multiple such fields.

Now, I want users to use only the issue selection custom field and should not be able to add the custom link types 'is implemented in' or 'implements' using JIRA's native More-Link-This Issue field. 

Is that possible to hide only those two options in JIRA Link types. I referred https://community.atlassian.com/t5/Answers-Developer-Questions/Behaviour-plugin-to-restrict-linkedissue-types/qaq-p/536508 but could not succeed in getting what I wanted

 

Thanks in advance

 

with warm regards

ramki

1 answer

1 accepted

0 votes
Answer accepted

Scriptrunner behaviors don't currently fire when you use the menu "More>Link" from the issue.

To enable behavior scripts and manipulate the list of link types, you would have to for the users to edit the issue either via the default edit screen or via a special workflow transition screen.

Then, you could manipulate the link-type field with getFieldById("issuelinks-linktype")

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events