I have one scenario where I want to update the date fields of subtasks based on how the dependent subtasks got completed. I want to create the dependency as well between the subtasks. I am new to JIRA and not aware of Groovy script. Can someone please help me in getting the script?
Hi @Gaurav Dhuppar and welcome to the community,
is this a hard and given requirement that this MUST be done via Scriptrunner? Or could jira automation (A4J) be considered as feasible solution?
Best
Stefan
Hi @Stefan Salzl,
No, its not MUST requirement to do via Scriptrunner but I was not able to find the way to do it from JIRA Automation. If you can provide me insights of doing it via JIRA Automation as well, that would be great..!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This would need more detailes and exact description/specification of your use case.
A good way to do that is the given - when - then method to describe a step by step description of the use case and expected result.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
GIVEN a task has multiple subtasks which will be created automatically once the task gets created. These subtasks has dependency in between them such that until one subtask completes, other can't start. These subtasks has specific duration which has been assigned to them like it will take n days to complete. There are custom fields as dates which are Current Estimated Start date, Current Estimated Delivery Date, Actual Start Date and Actual Delivery Date.
WHEN a subtask gets completed, these dates will be automatically updated for all the dependent tasks based on their duration.
Now, if a subtask gets completed earlier/gets delayed, then start dates of other dependent subtasks should get updated accordingly.
Please let me know if we can discuss this over call as it will be easier to explain the requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gaurav Dhuppar ,
the community is meant to answer questions and give you hints and guidance to find a solution. To have on call and work done many of us work as professional experts/consultants.
You said subtask are dependent: I´m they are dependent and you know about that. How is the dependency done within JIRA? How can a rule (whether A4J or Scriptrunner, both would need that) identify the dependency?
Did you already try to build an automation rule? What was your approach? Could you show what you already tried?
For providing an acurate hint could you also post a screenshot of such a task with subtasks and also of a subtask?
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your response. I totally understand that community members are just helping the people to get to the solution.
I have created the automation rule to update the initial estimated date for the subtasks based on the duration they would take to complete. Now, I am not able to update the dates based on when the tasks are started and completed because I am not able to create the dependency between that. I know we can do that by linking the issues, but I want to acheive it via automation which is not happening. I am attaching the tasks and subtasks screenshot here. Also I have created one variable which will be have the duration each subtask will take to complete.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.