Forums

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

Required fileds in two screens

Dana Maria M March 5, 2019

Hello,

I have a problem related to some required fields.

I have the following situation:

I created a new flow for a new kind of issue - "New Issue". My flow is: Open - Define - Analysis - Solve - Closed.

The screens for my issue are:

  • create - New Issue Screen Create
  • edit - New Issue Screen Edit
  • view - New Issue Screen View

Create and edit screens have the same fields.

1. Open: Create a new issue.

2. Open - Define : Edit every data I want.

3. Define - Analysis: All my fields became not-editable. I use a new screen - Add Analysis Info Screen - on the transition to add new fields and some of them are required but I need to see them in the view screen to.

The "Add Analysis Info Screen" fields:

  • My Info, text field, is required
  • Methods, text field
  • Actions, text field, is required
  • Link. text field

The "New Issue Screen View" fields = the "New Issue Screen Create/Edit" fields + the "Add Analysis Info Screen" fields

Everything is perfect until I try to add a new issue! I received the red message: My Info: My Info is required.

I don't understand what happens because I haven't these fields in "New Issue Screen Create", the screen I use for create.

Can you help my with a solution?

Thanks in advance!

Dana Maria

2 answers

2 accepted

1 vote
Answer accepted
Ismael Jimoh
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.
March 5, 2019

Hi @Dana Maria M ,

In your configuration, you would require to have this field in your create screen as well since they share the same Field configuration scheme.

My suggestion is to add a validator  to your Workflow using either scriptrunner or JSU add-on to make the field required via a validator.

This is explained here if you are using JSU.

Scriptrunner would require you writing a script yourself though.

Regards. 

Dana Maria M March 6, 2019

Thank you for your answer!

I used JSU on my transition but I want to have the red star for each required field from "Add Analysis Info Screen".

Ismael Jimoh
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.
March 6, 2019

For that, I am unsure as the behaviour of having the red icon next to field field is provided from the JIRA source code and if you are using an add-on, the vendor would need to implement a similar behaviour.

For example this add-on Workflow Essentials does just this.

Dana Maria M March 6, 2019

Thank you!

1 vote
Answer accepted
Jean-Théo [Adaptavist]
Community Champion
March 5, 2019

Hi @Dana Maria M,

Do you use the field configuration to select the required fields? Because that would mean the field that you select as "required" would be required for the create screen, even if it is not displayed in it.

To fix your issue, you should either :

1 - Add the field to the create screen and set a value for it (while creating the issue)

OR

2 - Remove the field as "Required" from the field configuration and add it as a validation in the transition instead

I hope this helps!

JT

Dana Maria M March 6, 2019

Thank you for your answer!

I used the "Fields Required" option from "Validators" on my transition but I want to have the red star for each required field from "Add Analysis Info Screen".

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events