Can I set a different default value for a custom field for different issue types?

I have a custom field called "Case type".  It can be set to Support, Implementation or Warranty.  Default value is Support.  Can this be changed based on Issue Type?  This value is set/changed by the user when the issue is created.  If not Issue type, is there some other setup that can control this request?

Thank you.

2 answers

Not using custom field contexts since you can only have one of those per project. Could be done with a scripted post function using ScriptRunner or similar

0 vote
Suhas Patil Community Champion Sep 13, 2017

You should be able to do this with Behaviour plugin (which comes with Script runner). Check some examples here

You cant use context since there can be only one context for a project. So with behaviour you can create different behaviours for each issue type for a project. 

Go through examples and try to build a script for your requirement. 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

197 views 1 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you