Issues commented by me in JIRA

纵饮孤独 提交于 2020-02-26 06:17:11

问题


As per JIRA documentation http://www.atlassian.com/software/jira/docs/latest

The following filter will show the issues opned by me (Current User).

reporter = currentUser()

Is there a filer that will show issues commented by me? something like the following does not work...

comment by = currentUser()

回答1:


if you know the name of the user (lets assume the name is Tom you can do:

issueFunction in commented("by Tom")

you can also filter it by date of the comment like:

issueFunction in commented("after -1d by Tom")

UPDATE: this requires ScriptRunner being installed in JIRA server (as JBert pointed out)




回答2:


You can use the Activity Stream gadget with a filter configured by username and activity type. Note that this requires a case-sensitive username, not the friendly Display Name.

Activity Stream gadget configuration:

Filtered Activity Stream display:

(I posted a variation of this answer elsewhere but have improved my filter since then and the new filter is more salient to this question anyhow.)




回答3:


You could also follow the approach presented by Matt Doar:

Use a participants field from the JIRA Toolkit plugin and query that

http://confluence.atlassian.com/display/JIRA/Advanced+Searching?focusedCommentId=229838922#comment-229838922

It's not a a complete answer but maybe a step in the right direction... Francis




回答4:


The new scriptrunner can do lots of things e.g. find issues with comments issueFunction in hasComments(), find issues with comments that are not older than 7 days issueFunction in commented("after -7d") and also issue comments from users or groups.

Details can be found here: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-commented(commentquery)




回答5:


You can try that workaround I am current using this expression on my saved search:

comment ~ "your.username.here"

This in fact catch the comments where I was mentioned, but if you mention yourself probably should works. I have not tried by myself.

My current Jira is a cloud based one, so I can't tell you exactly which version is.




回答6:


I had the same problem and

issueFunction in commented("by username") 

worked for me

The following query identifies tickets in which current (or some other particular) user was mentioned in comments:

comment ~ currentUser()



回答7:


This (to my knowledge) cannot be completed using JQL, even with a plugin. If you have DB access, the query is simple:

SELECT pkey, summary FROM jiraissue, jiraaction WHERE jiraissue.id = jiraaction.issueid AND author = '<insert_jira_username>';



回答8:


If you're talking only about the current user, there is a personal Activity Stream in your profile

https://xxx.atlassian.net/secure/ViewProfile.jspa

It includes actions other than comments, but does provide an RSS feed which you could filter only comments with:

<category term="comment"/>



回答9:


This is the query to know the issues I am involved in:

SELECT a.pkey, a.summary FROM jiraissue AS a left join jiraaction AS b on a.id = b.issueid 
where b.author = 'jira_username' OR a.REPORTER = 'jira_username' OR a.ASSIGNEE = 'jira_username' 
group by a.pkey order by a.CREATED

This is the query to know all issues raised in the last 24 hours.

select REPORTER, SUMMARY from jiraissue 
WHERE CREATED > DATE_SUB(CURDATE(), INTERVAL 1 DAY)  order by CREATED DESC; 



回答10:


For filtering issues in which you have been mentioned, try comment ~ currentUser()




回答11:


In JIRA v7.3.0, the watcher field works well, if autowatch is enabled:

watcher = currentUser()

How to enable Profile > Preferences > Autowatch : [inhert, disabled, enabled]

Issues that you create or comment on will automatically be watched for future changes.



来源:https://stackoverflow.com/questions/5975529/issues-commented-by-me-in-jira

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!