Smart value for custom field

Ashok Bala March 12, 2024

Hey! How can I access the remaining time of this custom field in an issue? I have tried {{issue.customfield_13321.remainingTime.friendly}} but it is not working

I need the value 158h 9m to be picked by this smart-value

"customfield_13321"{"id": "90","name": "Time to resolution","_links": {"self": "test"},"completedCycles": [{"startTime": {"iso8601": "2024-02-13T16:51:11-0800","jira": "2024-02-13T16:51:11.743-0800","friendly": "13/Feb/24 4:51 PM","epochMillis": 1707871871743},"stopTime": {"iso8601": "2024-02-20T07:12:40-0800","jira": "2024-02-20T07:12:40.651-0800","friendly": "20/Feb/24 7:12 AM","epochMillis": 1708441960651},"breachTime": {"iso8601": "2024-03-19T02:39:32-0700","jira": "2024-03-19T02:39:32.744-0700","friendly": "19/Mar/24 2:39 AM","epochMillis": 1710841172744},"breached": false,"goalDuration": {"millis": 576000000,"friendly": "160h"},"elapsedTime": {"millis": 6627256,"friendly": "1h 50m"},"remainingTime": {"millis": 569372744,"friendly": "158h 9m"}}]}

2 answers

1 accepted

4 votes
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 Leaders.
March 12, 2024

Hello @Ashok Bala 

Please try to log below smart value:

{{issue.customfield_13321.completedCycles.remainingTime.friendly}}

Ashok Bala March 12, 2024

Hi @Kalyan Sattaluri

Don't know how I missed that completedCycles. It works for me now!
Thanks!

Like Kalyan Sattaluri likes this
0 votes
Bill Sheboy
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 Leaders.
March 12, 2024

Hi @Ashok Bala -- Welcome to the Atlassian Community!

That does not appear to be a built-in or user-added custom field.  Is that field from a marketplace addon?  If so, please contact the vendor's support for the product to learn how to access the field.

Until you hear back from the vendor...

Sometimes custom fields from addons are dynamically calculated, and the value can be saved in a created variable for later use in an automation rule.  Perhaps try doing that.

Kind regards,
Bill

Ashok Bala March 12, 2024

Hey @Bill Sheboy

Thanks and I really appreciated the suggestion! I missed something that @Kalyan Sattaluri pointed out above. Thanks again

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events