Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Statuspage

New feature: Slack notifications for Statuspage

We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...

51 views 0 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you