Forums

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

display different fields depending on issue type

Nariman Riahi
Contributor
February 5, 2012

I need to display create issue screen with different fields depending on the selected issue type.

For example for Bug I need to show a certain field.

For Task display a different field.

I have started reading about it and it seems just so complicated and I want to make sure I don's mess it up. I would appreciate any help I can get.

It looks like there are several ways to do this also. Anyone has done this?

Thanks

3 answers

1 accepted

3 votes
Answer accepted
Dieter
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.
February 5, 2012
You need to define an issue type screen schem. This lets you define one screen Scheme per issue type. The issue type screen scheme is assgned to yourvproject. A screen scheme in turn lets you define one screen per create/view/edit mode. Here is the procedure ( bottom up) If you have 3 issue types, create one screen scheme for each issue type. I recommend to use something like issuetype.screenscheme as the name. Also create 3 screens for the different issue types. In the screen scheme map the create view to the create screen you have created. After you have done this you create an issue type screen scheme and map the issue types to the screen schemes. Then assign the issue type screen schemevto thevproject
Nariman Riahi
Contributor
February 5, 2012

Thanks Dieter. I did everything as you said. One issue remains.

I have now 3 screens that are empty (since I did not configure the fields yet). But when I try to create an issue with either of these issue types I get the default screen (not the empty screen that I was expecting)

Like Zayn Alam likes this
Dieter
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.
February 6, 2012
Check if each of the three screens belongs to a screen scheme which in turn belongs to an issue type screen scheme which in turn must be assigned to the project.
Nariman Riahi
Contributor
February 6, 2012

Dieter, thank you do much for your help. After reading up more and more about this. Do I really need seperate screens for each of these issue types? Can I not achieve this sung the default screen?

Dieter
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.
February 6, 2012

yes, there is a way using one screen only. In this case you would have to define a field configuration scheme with one field configuration peer issue type. Each field configuration would disable the fields that you do not need.

0 votes
Emerson Charles Smith July 12, 2018

This was posted by Matt Doar and is the only thing that clarified this question for me! 

The key part is that you want to create one ITSS and then configure each project to use that same ITSS. 

In that ITSS you have a mapping from the issue type X to a screen scheme usually named "X Screen Scheme". That screen scheme then has a mapping to one, two or three screens for creating, editing and viewing issues of type X.
0 votes
Renjith Pillai
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.
February 5, 2012

There are not many ways to do it. May be two ways.

1. Adjust the settings in "Issue Type Screen Scheme"

2. Or use the same screen scheme, but customize the context of the custom fields to indicate to which issue-types they are valid.

Nariman Riahi
Contributor
February 5, 2012

Let me add more detail to my request.

I need to create 3 new issue types. DONE

For each of the new issue types I need a few custom fields added to the create issue screen.(not sure what the best way is)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events