Forums

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

Question about the Jira Search.

Jiebyoung Park
Contributor
November 6, 2023

Are there any ways to search

- The Jira Issues which have the comments I left?

- The Jira Issues which have the comments which somewon mentioned me (or spcific person with @ ~)

It would be quite helpful if I would know the solution.

Thanks!

3 answers

1 accepted

2 votes
Answer accepted
Muhammad Moazzam Hassan
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 6, 2023

The Jira Issues which have the comments I left? - This cannot be done via JQL, but there are few ways to find when you comment on an issue you will automatically add as a watcher, second via the automation rule, via rule you can find the issues keys of the issues on which you have commented. The rule screenshot is mentioned below.


The Jira Issues which have the comments in which somewon mentioned me (or specific person with @ ~) - Yes you can find it by using the function currentUser() or you can use the account Id of the specific person who is mentioned in the comment. For e,g comment ~ 63d9ff85491b20ef64b84456.


image.png

Jiebyoung Park
Contributor
November 6, 2023

Thansk for reply.

My second question was resolved. 

As for my first question, You seems to have said two suggestions. (I confirmed the first suggestion have been already applied in the system. but, actually, It seems not pure solution because all watcher issues isn't the one I commented.

anyway, I got to know cleary that it's impossible to be resolved by JQL. 

The workaround you suggested for my first question, It's difficult for me yet to understood clearly. but, I will trying it.

One more question, this workaround is only for the future issues after I set someting? or it works for also all legacy issues which I already commented before?

Muhammad Moazzam Hassan
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 6, 2023

It will work for all the issues.

Jiebyoung Park
Contributor
November 7, 2023

Thanks for quick reply!

0 votes
Ollie Guan
Community Champion
November 6, 2023

Hi @Jiebyoung Park ,

- The Jira Issues which have the comments I left?

comment ~ currentUser()

- The Jira Issues which have the comments which somewon mentioned me (or spcific person with @ ~)

Vote for this issue

https://jira.atlassian.com/browse/JRACLOUD-27594

0 votes
Laurie Sciutti
Community Champion
November 6, 2023

Hi @Jiebyoung Park ~ are you using ScriptRunner?  If so, you can use the various Comment functions:  https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search/jql-keywords#comments 

Laurie Sciutti
Community Champion
November 6, 2023
Jiebyoung Park
Contributor
November 6, 2023

We seems not to have the "ScripRunner' App. 

Is there any other workaround without ScriptRunner?

GL November 8, 2023

Hi there, I'm from the ScriptRunner team. For your first question, you might find the commentedBy keyword useful.

This comes as part of Enhanced Search, an app under the ScriptRunner family that focuses on additional JQL functions and keywords that help with Jira search.

Here's a simple way to use it:
commentedBy = 'yourUsername'

Hope that helps, and if you have any questions, feel free to reach out!

Jiebyoung Park
Contributor
July 4, 2024

Thanks for reply. you meant there isn't any workaround except for using ScriptRunner because "commentBy is also the function of ScriptRunner.  right?

Suggest an answer

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

Atlassian Community Events