Forums

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

Can we restrict creation of sub-task based on their parent issue

Deleted user November 1, 2019

I want to restrict creation of sub-tasks once their parent tasks are closed. How can we achieve this?

2 answers

0 votes
Ste Wright
Community Champion
November 1, 2019

Hi @[deleted]

^ The above will work - it removes the ability to add sub-tasks, along with a suite of other edit functions. To add this to your workflow:

  1. Locate the workflow for the issue type in question (Jira Administration > Issues > Workflows)
  2. Click to edit the workflow
  3. Press on the Status (not the transition) and press Properties
  4. In the Property Key, place "jira.issue.editable"
  5. In Property Value, place "false"
  6. Press Add, then publish the new workflow

If this is too restrictive for you as it prevents editing also - you'll need to consider doing this via scripting using an add-on. This answer details how to restrict sub-task creation using ScriptRunner.

Ste

0 votes
Ravi Sagar _Sparxsys_
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.
November 1, 2019

Hi @[deleted] 

You can try adding jira.issue.editable = false property to your closed step in the workflow. 

Ravi

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events