Forums

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

Is it possible to avoid editing a subtask, depending on the state of the US parent?

Gemma_Fernandez__Sogeti_ August 1, 2019

I would like to block the subtask editing option when the US parent  is in a certain state.

For example, when the US is in the approved state, the subtask associated with this Us cannot be edited.

I've consulted the workflow conditions, validators and post-functions options, but I haven't found the option that I'm looking for.

 

Thanks 

 

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 2, 2019

Hello Gemma,

In order to prevent sub-task issues from being edited while their parents are in a determined state, you can update the sub-task to a new status where the jira.issue.editable property is configured to false, however, you will need a plugin to automatically update the sub-task status. 

You can use the Automation Lite for JIRA App which has 300 free executions/per month to achieve this goal. These would be the steps:

- Configure a new status for your Sub-task issues (blocked) with the property jira.issue.editable set to false that allows all the transitions to be transitioned to, but can only be performed by the Automation for JIRA user.

- Create another status to be selected to the sub-tasks after the parent status change and enable the sub-task to be edited again.

- Configure two rules: One to move the status of the sub-task issue to the created status and others that will move out of the created status, depending on the parent status. Supposing the parent status that blocks the sub-task from being edit would be "In Progress":

1  - This one will drive the sub-task to the blocked status:

Screen Shot 2019-08-02 at 17.57.47.png

2 - This one will take the sub-task out of the blocked status:

Screen Shot 2019-08-02 at 18.01.57.png

Let me know if you have any questions.

Suggest an answer

Log in or Sign up to answer