Forums

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

How do I make a field required

Joe Harmon
Contributor
October 1, 2019

I can figure out in jira automation how to setup a query to see if certain fields are set.  I want to be able to then have an action to require a field to be set manually.  I can't find a way to do that with the jira automation.

4 answers

1 accepted

0 votes
Answer accepted
Denise_Wuethrich_beecom_products
Contributor
October 4, 2019

Hi, Joe!

 

You may definitely do that using JSU.

Use a JQL Condition to show a transition based on different fields, JQL condition can be like "key = {issue.key} and field1 != null and field2 !=null". For making Field Required, you can use Field required validator from JSU on any number of fields.

 

Hope this helps.

For further configuration information, check out this link:  https://confluence-apps.beecom.ch/display/JSU/JSU+Configuration+Guide

Joe Harmon
Contributor
October 8, 2019

Denise, I don't want to show or hide the transition based on the query.  I want to make certain fields required based on whether or not certain fields are set.

Denise_Wuethrich_beecom_products
Contributor
October 9, 2019

Hi, Joe! Let's say you want to make field B required, if field A is true.

The following solution has the limitation, that it only works if field A is already set before the user triggers the transition (so field A it is not on the transition screen).

Transition "One":
Condition: A == true
Validator: B required

Transition "One+":
Condition: A != true
Validator: -

You might choose almost identical names for the transition, so to the user it seems to be the same.

There are no conditional validators in JSU to handle the case when both fields are on the transition screen. However in many cases the above solution can be applied.

0 votes
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 3, 2019

What you need is a _workflow validator_. Unfortunately, Automation for Jira doesn't offer any.

You need to look into other apps, such as JMWE or JSU, that provide a Field Required Validator.

Joe Harmon
Contributor
October 3, 2019

I have JSU and I know how to make fields required.  I have many workflows where this is the case.  What I was trying to figure out was how to only make it required when certain fields are set in certain ways.

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 3, 2019

I don't know about JSU, but you can do that with JMWE.

0 votes
Deleted user October 1, 2019

Hey there Joe,

query to see if certain fields are set

In Automation for Jira you can check if a field is set or not by using the Issue field condition: https://docs.automationforjira.com/reference/conditions.html#issue-fields-condition

I want to be able to then have an action to require a field to be set manually

Unfortunately, Automation can only automatically set fields and but not force users to set fields manually. (ie we can't force a pop up window, or make fields mandatory during transitions)

Cheers,

Mark C

Joe Harmon
Contributor
October 2, 2019

Okay you confirmed what I was seeing.  Really wish they would add that ability.

0 votes
Sebastian Krzewiński
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 1, 2019

Hi @Joe Harmon 

 

Could you explain it again? :) I don't get your problem :)

 

Regards,

Seba

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events