Forums

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

How to make "Custom field" mandatory

Naresh
Contributor
October 22, 2022

Using Datcenter --  8.20.x

having JSU, JMWE and Scriptrunner

 

How to make "Custom field" in Sub-task issue (at a particular transition)  mandatory based on the "issuetype of parent field.

 

Example  In the below Status "Deliverd" (this is subtask wrflw)  a particular custom field lets say "customer Name" 

should be made Mandatory when the issuetype of parent is story

 

Subtask workflow.PNG

1 answer

1 accepted

2 votes
Answer accepted
David Fischer
Community Champion
October 22, 2022

Hi @Naresh 

You can use a Field Required Validator (JMWE App), select the required field, and add conditional validation like:

issue.parent?.issueType?.name == "Story"
Naresh
Contributor
October 22, 2022

@David Fischer 

Thankyou David its working fine  :)

Naresh
Contributor
October 25, 2022

@David Fischer 

Can the same can be applied to check for parent status ?

issue.parent?.status?.name == "Baselined"

 

Where "Baselined" is the status of Parent issue.

David Fischer
Community Champion
October 25, 2022

@Naresh  absolutely. Check out the inline help system below the editor to find out everything you can do with Jira expressions. 

Naresh
Contributor
October 25, 2022

@David Fischer 

Thankyou Verymuch

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events