Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
Nicholas Ellis _ALM Works_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Jun 06, 2022

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
AUG Leaders

Atlassian Community Events