Forums

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

How to add the remaining time of SLA on a Slack message

Servane Garcia
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2020

Hello, 

I've created a project automation to get my running issues on a slack message every morning (thanks to this page https://community.atlassian.com/t5/Jira-Core-articles/Morning-Slack-digest-of-Open-Jira-issues/ba-p/1266568?utm_source=list&utm_medium=email&utm_campaign=corporate_online-community&utm_content=jira-community-newsletter_EML-6023&jobid=104500493&subid=1453578792) but I can't find anywhere how to add the remaining time of the SLA in that message. 

If anyone can share the correct smart value to add that would be great!

Thanks !

 

2 answers

1 accepted

1 vote
Answer accepted
Henning Tietgens
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.
December 10, 2013

You could use the Script Runner plugin and a scripted condition for the subtask workflow step. Something like this should get you started:

['Status 1', 'Status 2'].contains( issue.parentObject?.statusObject?.name )

Status 1 and Status 2 are the valid statuses.

Július Presinszky
December 12, 2013

Thank you very much! it works well.
can I in similar way check issue type of parent issue? Sometning like this doesn't work.

['Issue type'].contains( issue.parentObject?.issuetypeObject?.name )

Henning Tietgens
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.
December 15, 2013

If you write issueTypeObject with an uppercase T it should work.

1 vote
Alex Perez
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.
December 10, 2013

Jira Misc Workflow plugin (it's free depending on you Jira version) has a validator called "Parent Status validator" that could help you.

Add that validation to the "start working" transitions and that's all.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events