Is it Possible to Assign a default value to an issue type on a new workflow screen?

Fabian Lopez
Contributor
August 16, 2011

I am creating a new workflow where I have a transition that "change issue type to bug or new feature"

I would like to create two transitions one for each option and then when the screen is shown show the preassigned value for the Issue Type = BUG or issue Type = New Feature

Is it possible to assign a default value for ISSUE TYPE on a new screen

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
August 17, 2011

You can, but only in limited circumtances.

First, you have to understand that Jira will not allow you to "edit" the issue type unless the two types are configured in a way that means the edit process is simple. For example, if they use different workflows, it won't let you do a simple edit, you have to use "move" so that it can go through the integrity checks required. (I don't think it does this with fields, but I can't be sure)

Assuming you can pass that test, then I would simply add javascript to the issue transition screens. You'd need two screens that look the same, but have differnt javascript in the descriptions of the last fields on screens. So if a user runs "go to bug", the javascript will set "bug" in the type field, and similarly for "feature"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events