Hi All,
I created an automation rule to sum up all the Original Estimates and Logged work of all linked issues under epic level..I wanted to add all the estimates and logged hours of Story,Improvement,Sub task,tasks to be populated under the Time tracking in Epic level..Whenever hours are logged or estimates has been updated it should sum and add those values under the Epic.
I referred this page and followed the steps but its always throwing Lookup Issue error and Unknown operator issue.I will also attach the screenshot of the rule & error .
Referred Link : https://community.atlassian.com/t5/Automation-questions/How-to-use-automation-to-sum-up-in-EPIC-the-hours-logged-in/qaq-p/1954914
Kindly help me in finding the solution.
Thanks in Advance!
Revathy Madhavan
Hi @Revathy -- Welcome to the Atlassian Community!
In your rule, your log action uses {{issue... but it should use the {{lookupIssues... smart value. Regardless of that problem...
Unfortunately, the Lookup Issues action for Jira Data Center version does not support most fields yet, including the time tracking ones: https://jira.atlassian.com/browse/JIRAAUTOSERVER-877
If it is of any consolation, when Lookup Issues was first added for Jira Cloud, it also only had about a dozen fields, and a year later all of the others were added. So I recommend watching that suggestion to see any progress.
For your scenario, the workaround is to call the REST API issue search with the Send Web Request action, using the same JQL as your original Lookup Issues call. Then all fields should be available for the sum.
If you want to try that approach, here is a how-to article for calling a REST API function from a rule and the function I believe is needed:
https://docs.atlassian.com/software/jira/docs/api/REST/9.13.0/#api/2/search-search
Kind regards,
Bill
Hi @Bill Sheboy ,
Thank you for the update, Let me try & check with REST API option.
But meanwhile i would like to know if there is any possibility using scripts in ScriptRunner Behaviours/Scripted fields to achieve the expected solution.
If possible kindly attach the script or any reference link ..
Regards,
Revathy Madhavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe that is possible, although I am not a ScriptRunner or Behaviors user and so cannot confirm that. Perhaps check their docs or wait for another community member who uses the product to post ideas.
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.