Hey folks! I need some help with JIRA filters. I want to set up a filter that shows all the issues where someone mentioned me in a comment during the past week. I’ve tried this:
comment ~ currentUser() AND issueFunction in commented("after -7d")
But it’s not quite right. This gives me all the issues where I was mentioned AND that were updated in the last 7 days. That’s way too many results! I just want to see the issues where I was specifically mentioned in a comment within the last week. Any ideas on how to tweak this filter? Thanks a bunch for your help!
I’ve faced this exact issue before, and it’s a bit tricky to get right with standard JQL. Here’s what worked for me:
comment ~ currentUser() AND comment[updated] >= -7d
This filter narrows down to comments mentioning you that were added or updated in the last week. It’s not perfect, as it might miss some mentions if the comment was edited, but it’s the closest I’ve gotten without custom scripting.
If you need more precision, you might want to look into using a plugin like ScriptRunner. It allows for custom JQL functions that can parse comment content more accurately. Just be aware that this requires admin access and some scripting knowledge.
Hope this helps you get closer to what you need!
yo, i feel ur pain with jira filters! have u tried this one:
comment ~ currentUser() AND comment[created] >= -7d
it should catch mentions from the last week. not perfect but works for me. lmk if u need more help!
As someone who’s worked extensively with JIRA, I can tell you that filtering for recent mentions in comments can be a bit of a pain. The JQL you’re using is close, but not quite there. Here’s what I’ve found works best:
comment ~ currentUser() AND comment[created] >= -7d
This filter looks for comments that mention you (currentUser()) and were created in the last 7 days. It’s more precise than just using the ‘updated’ field, which can include other types of updates.
One caveat: if someone edits an older comment to mention you, it won’t show up. For that level of precision, you’d need to use a plugin like ScriptRunner to create a custom JQL function. But for most cases, this should work well.
Remember to adjust the timeframe (-7d) as needed. You can also combine this with other criteria if you want to narrow it down further, like specific projects or issue types.
Hope this helps you stay on top of your mentions without drowning in notifications!