Jira Email This Issue: Is it possible to display remaining SLA time?

Hi all,

We want to send internal mail if a sla of an issue may be breached. This works fine, we can send mails.

The question is, how can I display the remaining time? If I add the custom field Time To Own (name of the sla) I receive following 

SLAValue{completeSLAData=[CompleteSLAData{calendarName=EASY Extended, succeeded=false, goalTime=7200000, elapsedTime=19089705, startTime=2016-11-03T07:50:30.787Z, stopTime=2016-11-03T13:08:40.492Z}], timeline=Timeline{events=[TimelineEvent{date=2016-11-03T07:50:30.787Z, types=[START]}, TimelineEvent{date=2016-11-03T13:08:40.492Z, types=[STOP]}]}, ongoingSLAData=null, metricId=5, definitionChangeDate=2016-09-27T19:39:44.000Z, definitionChangeMsEpoch=1475005184509, goalsChangeDate=null, goalsChangeMsEpoch=null, goalTimeUpdatedDate=null, goalTimeUpdatedMsEpoch=null, metricCreatedDate=1471939837461}

 

 

That is not quite that what we would like, we would rather see something like "30 minutes", just as displayed if you search for issues. Is this possible by any chance?

 

Thanks for any input, Bruce

1 answer

1 accepted

Hi Bruce, 

This is not possible at the moment. SLA field types have JSON structured values, which cannot be parsed with the current Template API.

We are implementing the support for JSD fields. Please watch this issue for progress: https://metainf.atlassian.net/browse/JETI-1415

Tibor

Thanks Tibor, by the way I do enjoy your Addon it works really well.

Hi how can we render SLAs custom fields on Customer Portal with groovy script.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you