The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Get korrekt smart value

dahu
Contributor
February 26, 2024

Hello,

I got an SLA with json-name: "\"Erledigt\" nach 14 Tagen \"Geschlossen\""

With a log-action with smart value: {{issue.fields."\"Erledigt\" nach 14 Tagen \"Geschlossen\""}} I get this result:

SlaFieldBean{completedCycle=[]ongoingCycle=SlaCycleBean{startTime=SlaDateTimeBean{iso8601=Mon Feb 26 12:21:05 UTC 2024, jira=Mon Feb 26 12:21:05 UTC 2024, friendly='Heute 13:21', epochMillis=1708950065734}, breachTime=SlaDateTimeBean{iso8601=Thu Feb 29 05:21:05 UTC 2024, jira=Thu Feb 29 05:21:05 UTC 2024, friendly='29/Feb/24 06:21', epochMillis=1709184065734}, breachTime=null, breached=false, paused=false, withinCalendarHours=true, goalDuration=SlaTime{millis=234000000, friendly='65h'}, elapsedTime=SlaTime{millis=2163363, friendly='36m'}, remainingTime=SlaTime{millis=231836637, friendly='64h 23m'}}}

 

... so it works.

But I need the value of 

{{issue.fields."\"Erledigt\" nach 14 Tagen \"Geschlossen\"".elapsedTime.millis}} to compare the value with another value, but in a log-action I do not get a result for the smart value

What is the correct smart value for that?

See screenshot with .json - names...

Best Regards,

Daniel

2024-02-26 14 04 53.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 26, 2024

Hello @dahu 

Can you please log below smart value and check

{{issue.customfield_10206.ongoingCycle.elapsedTime.millis}}

dahu
Contributor
February 26, 2024

Hello Kalyan,

aarrgghhh :) ... I should have been able to see the missing "ongoingCycle" ... next time I will know.

It works fine, thank you very much!!

Best Regards,

Daniel

Like Kalyan Sattaluri likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events