It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Transition Screen based on issue type

I have a workflow that is shared with multiple issue types.

When I creat a transition, it wants a Transition Screen. Is there any way I can have a screen show that is based on the issue type?

Different issue types hold different information.

8 answers

1 accepted

3 votes
Answer accepted

Not directly.

You could make a screen that includes all the fields for all the issue types, then use field context or configurations to hide the ones you don't need on an issue-type basis.

Or you can define two separate transition screens and two separate workflows that use them (because you can say workflow 1 for issue type 1 and workflow 2 for issue type 2)

"use field context or configurations to hide" 

Do you mean field context for custom fields and field configuration for system fields ? 

Pls clarify.

Not necessarily.  You could use field config to do all the work, but you don't have to.  System fields always exist though, they don't have a context.

For future reference:

I had this problem as well, but I could easily solve it by having two (or more) transitions with different screens and adding a condition to the transition with a 'Value Field / Issue Type'.

I'm not sure if it requires Scriptrunner.

I did give the transitions different names, like 'Resolve <Issue Type>'

Additionally to Nics suggestions you can use the Script Runner plugin and create different workflow transitions with different screens which are only available for a specific issue type (through a script runner scripted condition "Allows the transition if this query matches a JQL query").

How can I name them the same though? It keeps preventing me from making them because I already have a transition named 'Resolve'

The answers from both Henning and Nic are correct.

Either you use 2 seperate workflows or you use one workflow with multiple transitions between certain states using scripted permissions based on issue type.

Best regards,

Peter

You can create a transition for each issue type where you create a validator in which that transition only appears for a specific issue type. For example, Create Resolve transition where issue type = Story and a Resolve transition where the issue type = Bug. The user still sees only one Resolve transition, but the screens, conditions, and post functions are specific to that issue type.

How can I name them the same though? It keeps preventing me from making them because I already have a transition named 'Resolve'

I use the basic name, such as Resolve, for the one associated with majority of types. Then for others, I specifically state: Resolve Bug, Resolve Impediment, etc.

by configuring ScreenScheme and IssueTypeScreenScheme, you can do that.

#1) go to the Screen Schemes in Admin->Issues->Screens->Screen Schemes->{create your screen scheme and configure for particular issuetype i.e.Create, Edit,View operations}

#2) go to the IssueTypeScreenScheme your project is using.

Admin->Issues->Screens->Issue Type Screen Schemes->{your project issue type screen scheme}->Configure->Associate an Issue Type with a Screen Scheme->{select the screen scheme configured for particular issue type}

go through the following links:

https://confluence.atlassian.com/display/JIRA/Associating+a+Screen+with+an+Issue+Operation

https://confluence.atlassian.com/display/JIRA/Associating+Screen+and+Issue+Operation+Mappings+with+an+Issue+Type

but what would I need to do to have the correct one show during a transition of the workflow?

yes, I totally mis-interpreted the question. Nic's answer is the right one.

Hello, we have the same trouble: each transition seems to be able just to manage one type of screen, but we have 3 different scheme screens, depending on the issue type

We use JIRA Helpdesk at Cloud, so I think there is no chance to script anything for us (and an upgrade is a no-go now).

How can we have more than 1 screen type per transition using various workflows as you suggest, which will be bassically 3 copies?

Thank you a lot

It has not changed, but I don't know why you think you need scripting or anything. Either 1) Have one workflow and for each transition, one screen. Use field configurations to hide fields for different issue types 2) Have different workflows for each issue type using different screens

Thank you Nic.

I have tried to use the option number one you suggested:

1) Have one workflow and for each transition, one screen. Use field configurations to hide fields for different issue types (...)

but I am not sure how to make it. I can see there is a "View Field Configurations" screen
(at /secure/admin/ViewFieldLayouts.jspa)

There, we can see "Field Configuration Schemes", where I can have a different one for some issue types ( hiding/showing the fields we need or not for each one, as you say ). 


But, how do I connect each different field configuration scheme to the issue types (or group of issue types) using just one screen by transition?

 

In plain English:

How can We use field configurations to hide fields for different issue types, but show them for other ones?

 

Thank you a lot

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

314 views 1 3
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you