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 votes
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
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,098 views 0 8
Read article

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