Forums

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

Get last comment by a particular user

Gal26
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!
November 24, 2020

Hi, 

I am trying to write a post function that will returns me a boolean value if the last comment of the issue was made by a particular user/user in custom field
What I want to achieve is:

for example if the QA owner of the ticket didn’t reply within the last X days after the issue was escalated for him, I want to create an automatic comment inside the ticket.

I have peaked on the commentManager interface but  nothing from there might be a good fit to my needs.

 

please assist:)

Thanks in advance

4 answers

0 votes
final_openshift Certi November 26, 2020

Hi @Gal26 

 

You can achieve this by using   JQL Search Extension plugin , you can use the query commentLastCreatedBy= "name of the user" please refer to the documents it contains examples and other necessary information related to the usage of plugin

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.
November 25, 2020

Hi @Gal26  -- Welcome to the Atlassian Community!

If you do not have, or want to purchase, a marketplace add-on to do this, you can use the built-in automation rules.  Add a scheduled rule to perform the check periodically.

Here is some information and examples to get you started:

https://support.atlassian.com/jira-software-cloud/docs/automate-your-jira-cloud-processes-and-workflows/

https://www.atlassian.com/software/jira/automation-template-library#/label/all/1453

Best regards,

Bill

0 votes
Gökçe Gürsel {Appfire}
Atlassian Partner
November 25, 2020

Hi @Gal26 ,

You can try the Comment Enhancer app for this.

All you need to do is to create the Last Comment custom field in your Jira. After creating comment custom fields, add these fields to the relevant screens. Then you'll see that these fields are populated automatically by Comment Enhancer. For historical data, meaning to show data in already existing issues, just perform a regeneration and you're done.

Comment Enhancer custom fields are sortable and searchable so you can use it in your script.

cfddd5f0-35a0-47a1-8f23-d62e8e7d91a0.png

However, if you want to set up a notifier to solve this issue without a script, you can try Time to SLA.

You just need to set up an SLA that starts with the escalation procedure and ends when the comment is entered. Enter your SLA duration and you're good to go. 

After this, you can notify the stakeholders with TTS notifiers (email/Slack), so that they can take action on the ticket. You can customize the body this notifications, recipients, recurrence, timing and so on.

sla-notifier-3.png

Please let me know if you have further questions.

Regards,

Gökçe

Please note that I'm a member of the Snapbytes team.

Gal26
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!
November 25, 2020

Thanks a lot and much appriciated :)

I will check this option.

0 votes
Mariana_Pryshliak_Saasjet
Atlassian Partner
November 25, 2020

Hello @Gal26 

You can find an answer on your question in this article: https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-to-display-Last-comment-in-Filter-JQL-and-any-Add-on/ba-p/1489153

 

Hope it helps

Best regards, Mariana

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events