Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Inherit DueDate from parent if date is in the future otherwise user must enter a due date.

Matt August 2, 2015

On creation of a subtask i would like to  Inherit DueDate from parent if date is in the future otherwise user must enter a due date.  Does anyone know how I would go about doing this? 

I am almost there I have the due date is Inherited from the parent if the date is in the future but i cant see how i would then make the user enter a duedate if its not inherited. Any ideas?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Volodymyr Krupach
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.
August 2, 2015
Matt August 2, 2015

If i do that user have to enter the duedate on creation of the subtask. The due date is inherited from the parent in a post function only if the duedate is empty. It doesnt seem that I can set the duedate to be required in a post function? Unless I have misunderstood something.

Volodymyr Krupach
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.
August 2, 2015

I suggest to configure it to be required through JIRA field configuration. Then in you post function you either set it to the future date from parent or leave it empty and user will have to enter it. Drawback is that user can still enter past date. If that's the problem you can try to add custom validator. This plugin: https://marketplace.atlassian.com/plugins/com.fca.jira.plugins.workflowToolbox.workflow-toolbox should allow you to add check for the due date or just create your own validator.

TAGS
AUG Leaders

Atlassian Community Events