Dear Community,
I'm trying to filter the issues got responded <7 days by assignees after they are been assigned. Comments or change status consider as response to the issue.
Within an issue workflow, there might be two assignees in total.
I have installed ScriptRunner, but can not figure out what JQL to complete this function.
Thanks!
Hi Pengshan,
You can try the groovy script:
issueFunction in issueFieldMatch("", "assignee", ".*") AND issueFunction in dateCompare("", "issue.history[commented, status changed] <= assignee[date] + 7d")
Hi Cristian, thank you for your help.
I tried it in ScriptRunner Enhanced Search:
issueFunction in issueFieldMatch("project = AMSELC", "assignee", ".*") + issueFunction in dateCompare("project =AMSELC", "issue.history[commented, statuschanged] <= assignee[date] + 7d")
But got error:
Did I do anything wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please try:
(issueFunction in issueFieldMatch("project = AMSELC", "assignee", ".*")
AND (issueFunction in commented("after -7d") OR status CHANGED AFTER -7d))
This approach gets you closer to filtering issues where assignees responded (via comment or status change) within the timeframe you want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
issueFunction in commented("by assignee after -7d")
This query will return issues where the assignee made a comment within the last 7 days.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cristian, thanks a lot for your reply. Unfortunately I got return,
I am using ScriptRunner Enhanced Search, do I need to download any extra app?
Best,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since you're using ScriptRunner Enhanced Search, you don't need to download any extra app. The commented
function should work as part of the functionality provided by ScriptRunner.
Check Commented Function: Verify that the commented
function is correctly enabled in your instance by going to Administration > Add-ons > ScriptRunner > Built-in Scripts and ensuring the function is available.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will check this with our administrator for JIRA. Thank you for your hint!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Cristian0791 is it possible you're using Jira Data Center here? Even the docs for ScriptRunner Cloud say Commented is not supported:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, got it! You're right, I’m using Data Center. Sorry for the mix-up!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.