Forums

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

How to make "Custom field" mandatory

Raghava
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"
Raghava
Contributor
October 22, 2022

@David Fischer 

Thankyou David its working fine  :)

Raghava
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. 

Raghava
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
atlassian, state of product 2026, product teams report, developer experience, product manager survey, AI impact, product team stress, product teamwork, dev workflow insights, 1000+ PMs, product leadership research

State of Product 2026

State of Product 2026: your pulse check on product development today. We asked 1000+ real teams how they’re feeling–and they had a lot to say.

Get the report
AUG Leaders

Atlassian Community Events