Forums

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

Need JQL query for no comment added in past 24hrs

siva boddu June 28, 2020

Using jira server need JQL query for no comments add in past 24hrs

 

thanks

1 answer

1 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
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.
June 29, 2020

There isn't a way to do this in plain Jira - you'll need an app to provide either a field that pulls out the date or a JQL function that can work with it.

However, "last comment" is often not as useful as you would assume.  It's usually better to look for any changes - there are plenty of updates to issues that you don't have to comment on, when people are looking at "date of last comment", what they're usually interested in is "last time it was changed".

You can look for that easily - "updated < -1d" will give you all issues that have not been updated for a day (you'll probably want to combine it with at least "and resolution is empty" so you don't get any of the closed issues)

siva boddu June 29, 2020

Hello Nic Brough thanks for responce

Here I used jql query for comments commeted on past 24hrs

issuetype = Support AND project in (10102, 12300, 13701, 14402) AND status not in (Closed) AND (resolution = unresolved OR resolutiondate >= -1w) AND status in ("In Progress") AND issueFunction in commented ('after -24h')

 

But my question is no comments added in past 24hr can you please help me how to prepare jql query based on above query

Thanks

Nic Brough -Adaptavist-
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.
June 30, 2020

Ah, ok, you have Scriptrunner installed if you're using issueFunction

You should be able to simply invert the last clause - And issueFunction not in commented()

Like Patrick Dolan likes this
siva boddu June 30, 2020

Thank you it’s working 

Suggest an answer

Log in or Sign up to answer