Forums

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

send last comment on issue in Post Function

Jan_Treger April 27, 2020

Hello

I'm currently looking into how I can send last comment and value of one static custom field on the issue when the issue is marked as DONE.

I have tried to setup post functions with "Email-pf" addon but the comment is not displaying in email...

Next I tried the "Easy Integrations for JIRA" to setup a REST Api call but I'm still struggling with passing the last comment as well....

Unfortunately I can't afford any of the "paid" addons so looking only for some free options...

Any ideas are welcome! 

Thank you

1 answer

0 votes
Sajit Nair _Trundl_
Community Champion
April 27, 2020

Hi @Jan_Treger , What do you mean by "send" last comment ?
Do you mean in an email ?
and how are you defining that it is last comment.. should it stop working post the ticket is marked done ? meaning no more comments will be counted ?

Jan_Treger April 27, 2020

Hi Sajit.

When Issue is moved to DONE, post function is triggered and the Last comment + One customfield value is sent either in email or via rest api call to a third party service...

I tried both ... email and then REST Api call.

In email I used "Email-PF" addon and in template I'm passing the "$comment" - the should list the last comment on the issue but it's not translating into the comment itself (known bug in the plugin aparently - HERE ) so I abandoned this...

Next I tried the "Easy Integrations for JIRA" plugin and there according to the documentation I should be able to declare the $comment (Doc HERE) as a parameter which I'm passing to the body. But that doesn't work either... 

I'm just looking for some free addon that would work.

Hope that makes more sense :)

Sajit Nair _Trundl_
Community Champion
April 27, 2020

Yes. That does make it clear. Thanks @Jan_Treger .
I remember faintly, a team member had a similar use case and he deployed it using scriptrunner.. ..but I am not sure if there is a free addon for that. 
Let me check back in my circle and I will get back to you if I find something positive. 

Meanwhile, Hopefully someone from the community may have the answer.

Jan_Treger April 27, 2020

Thank you if you have any news please let me know! :)

Suggest an answer

Log in or Sign up to answer