Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jacqy George September 12, 2017

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

0 votes
Suhas P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 13, 2017

You should be able to do this with Behaviour plugin (which comes with Script runner). Check some examples here https://scriptrunner.adaptavist.com/4.3.0/jira/recipes/behaviours/

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. 

Suhas P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 13, 2017
0 votes
MattS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 12, 2017

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events