Forums

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

How to add the same field on 2 screens?

Prateek Phadke February 6, 2018

I have a transition screen(with couple of fields added) defined for each transition on my workflow.  Now a couple of questions:

1. Is it possible to show all the fields together on a different screen(default screen while viewing issue)? Preferably I would like the user to enter the data inputs only at the time of issue creation and on a particular transition only.

2. How do I make a field mandatory only on a transition screen? Presently when I make a field required, the field becomes mandatory even while issue creation? JIRA simply does not allow to create a new issue without mandatory field which is not even present on create screen.

1 answer

1 accepted

0 votes
Answer accepted
RianS
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, 2018

I'll answer these in the same order you presented them:

  1. It is possible to have the display screen and create screen be different and defined in the screen scheme. It will require creating two different screens that will be presented in those two different cases. You would have a create screen with only the fields you want the filled out during the issue creation and a display screen that will display all the fields you want appearing when viewing an issue.
  2. To make a field mandatory on the transition screen, it isn't handled by the screen. It is done by the workflow. You have a validator on the transition in the workflow which checks to make sure that the field you want is populated. So you will need to have the field on the screen for the transition and have the workflow validate that the field is populated with a value before the transition will complete. You will need to do this for every transition you want to enforce the value in the field. The standard validator doesn't check to see if the value changes, only that the field has a value. There are ways using some add-ins where you might be able to check that the value has changed on a field, but it becomes much more complicated.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events