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. 

Ravi

0 votes
Stephen Wright Community Leader Nov 01, 2019

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.

Ste

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

276 views 1 2
Join discussion

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