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?
Community moderators have prevented the ability to post new answers.
Configure Due date to be required https://confluence.atlassian.com/display/JIRA/Specifying+Field+Behavior#SpecifyingFieldBehavior-Makingafieldrequiredoroptional and set it empty when its not inherited.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.