It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

2 answers

0 votes

Hi @shrikant maheshwari 

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


0 votes

Hi @shrikant maheshwari

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


Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you