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

How to display certain values in "issue type" field based on custom field value?

Massimo G April 28, 2015

Hi,

I suggested this new feature development https://jira.atlassian.com/browse/JRA-43145 but I suppose this use case can already be implemented using script runner plugin.

My project has the following issue types: "bug", "improvement", "new feature", "support", "training" and a custom field called "issue category" that can assume the following values: "Development", "Service".

I'd like to implement the following behaviour:

  1. user opens create screen
  2. when user selects "issue category" = "Development" the issue types shown are: "bug", "improvement", "new feature"
  3. when user selects "issue category" =  "Service" the issue types shown are: "support", "training"

Can anyone help me?

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Volodymyr Krupach
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.
April 28, 2015

You can implement such kind of filtering via JavaScript. The JavaScript can be injected as part of your custom filed. Good start point: https://confluence.atlassian.com/display/JIRAKB/How+to+display+a+Field+based+on+another+Field%27s+selection

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 28, 2015

You won't be able to do that with the script runner - you need code in the core of JIRA to override the standard issue create process.  At the very least, you'll need a proper plugin to override the screen(s)

The closest you'll get without a plugin is botching some javascript into the screen which implements all the behaviour you want (rewriting the screen, and you'll have to pull or hardcode your category list), which won't work for REST and it won't help you with all the other routes for creating issues.

TAGS
AUG Leaders

Atlassian Community Events