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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to change default value on Linked Issues to "relates to" from "blocked"?

On my system, the default value is "blocked" for Linked Issue. I want to change it to "relates to".

Any idea?

4 answers

You need to create a Behaviour - Initializer, with the Scriptrunner plugin:

getFieldById("issuelinks-linktype").setFormValue("relates to")

More infos at: https://scriptrunner.adaptavist.com/latest/jira/recipes/behaviours/working-with-issuelinks.html 

Thanks for your answer it works for me 

Like Dave Liao likes this

The only way to do that is to make 'Blocked' the first value in the issue linking section. JIRA will just take the first value there and display it as the default.

I know this is an old post... but blocks is first in my issue linking section, however, when I create a linked issue, the default is "causes"... I NEED BLOCKS TO BE DEFAULT! helppp

2020-08-17_10-55-48.png

Dave Liao Community Leader Nov 03, 2020

@jhuynh - figure this out? (If you have access to a tool like ScriptRunner, use Kisgergely's answer.)

Are you using Jira Cloud, or Jira on-premise solution like Server or Data Center?

Curious how "causes" is the default... on my test Jira instance, the default keeps going for the first choice alphabetically.

abdication.PNG

But it seems on Admin Area -> Issue Linking that the system will sort link type automatically from A to Z.

I just tried to add a new link type called "Connect", just like I expected, the system saved and sorted it after "Cloners".

0 votes

Maybe a script in the announcement banner to sort the field?

Not sure about how to write it though.

Suggest an answer

Log in or Sign up to answer
TAGS

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