Forums

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

JMWE Block Sub-Task creation for INITATIVE isse type

Mateusz Janus
Contributor
January 26, 2026

Hello Brothers and Sisters,

I am JIRA DC... I want to BLOCK creating Sub-tasks for specific IssueType = INITIATIVE (Portfolio Plan Hierarchy). On Sub-Task Workflow transition = Create I am building validator using JMWE.

 

Related Issues Validator (JMWE app)

1. What to validate - Forbid certain related issues

2. Related issues - Parent issue of the current issue in the Portfolio hierarchy
3. Condition on related issues: - GROOVY script place (???)
Can anyone help me? is it good approach? If yes can u help with GROOVY script (I am noob even with google help)

1 answer

0 votes
Marc -Devoteam-
Community Champion
January 26, 2026

Hi @Mateusz Janus 

You can use this.

def parentIssue = issue.get("parentObject")

if (!parentIssue) {
return true
}
return parentIssue.getIssueType().getName() != "Initiative"

Suggest an answer

Log in or Sign up to answer