Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,265
Community Members
 
Community Events
165
Community Groups

JIRA Structure Formula help

 This formula works like what I want 

 with hSeconds    = 3600000:

with tOrignalEst = SUM {IF JQL { issueFunction in linkedIssuesOfAllRecursive("Key='ABC-12666'") and status != Canceled } :

                                                OriginalEstimate 

                                                }:

Round(tOrignalEst /hSeconds,0)

 

But I don’t want to hardcode the issue key, I want to pass that as a variable, as given below, and I am not sure with the syntax. It is throwing me all sorts of errors. Can y'all help? Please

 with hSeconds    = 3600000:

with iKey  = “ABC-12666”:

with tOrignalEst = SUM {IF JQL { issueFunction in linkedIssuesOfAllRecursive("Key='" + ikey + "'\"") and status != Canceled } :

                                                OriginalEstimate 

                                                }:

Round(tOrignalEst /hSeconds,0)

 

Thanks for your help and I really appreciate it.

 

1 answer

2 votes

Hi Balaji,

Unfortunately you cannot inject variables into the JQL{} functions query string. Here is the relevant documentation.  The reason it works this way is for performance reasons.  In a large structure of 10k+ issues each with their own JQL query it becomes a very resource intensive operation to complete.

Cheers,
Nick

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

375 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you