Forums

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

How can I automate Due Dates from Original Estimates?

Joe Mueller
May 28, 2020

Our team is utilizing Jira Cloud - and we have a straight forward process of Estimating all of our work and setting it to "To Do" to grab as we go. I want to be able to automate the Due Date field so that when our devs transition the issue to "In Progress", and if the due date is empty, set the Due Date to when it's transitioned (now) to (now + Original Estimate).

The automation rule in Jira is easy for setting up the conditions, but the action for adding the Original estimate is where I'm blocked.

From this documentation: https://support.atlassian.com/jira-software-cloud/docs/smart-values-date-and-time-functions/ I can only find syntax for {{now.plus[insertknownquantity]}} 

How do I get that [insertknownquantity] to not be a fixed time, but instead pull from the Original Estimate field? 

2 answers

1 accepted

2 votes
Answer accepted
Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 27, 2013

Hello,

It is possible to do so by using a post-function from a third-party plugin to run a scripted post-function to add the comment. These are the steps needed to use this:

  1. Navigate to Administration » Plugins » Find new Plugins, search and install the Script Runner plugin.
  2. Create a <tt>.groovy</tt> file (script file) with the custom script for this transition. You can possibly customize the script mentioned here to use it for this purpose - you'll also need to look up the correct transition IDs so this will work and update the script.
  3. Add a new post-function in the transition you wish. Choose the Script Post-Function option, which will be added after you install the mentioned plugin.
  4. On the <cite>Script file path</cite> option, type the path to the script file (e.g.<tt>Subtasks.groovy</tt>) you've created in the previous steps.
  5. Publish the Workflow's draft and try to close a subtask's parent issue to see how it goes.

I hope this helps!

Best regards,
Matheus Fernandes

0 votes
David Griffin
April 26, 2013

Hey matheus,

It something similar also possible for JIRA OnDemand users ?

We are looking forward to do the same - add a coment to the parent issue on sub-task resolve - but the "copy field value to parent issue" post funtion is not able to copy a comment so we started to look for a "workaround" but this is the only one I found so far - and installing scripts and adding files does not sound to mu ch of a solid answer for OnDemand users.

Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2013

I do not know if this is possible in OnDemand due to the restrictions in the platform as you mentioned. My suggestion would be to transform your comment here in a question here in Answers, so that anyone else would be able to see.

Jelly scripts could possibly do that I think, but again I'm not sure if it works in OnDemand.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events