Forums

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

Search for spesific comment in JIRA API

michal.moshe July 20, 2020

Hi, is there any way to search for all the issues that include the spesific comment?

for exmple:

https://ProjectName/rest/api/2/search?jql=comment="word to search"

 

1 answer

0 votes
Bill Sheboy
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.
July 20, 2020

Hi @michal.moshe 

Have you tried to search using JQL, matching on your comment's text with partial matching  Please see here for a reference:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/

 

Best regards,

Bill

michal.moshe July 20, 2020

Hi bill , thanks for responding .

I tried and it didn't work.. 

Bill Sheboy
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.
July 21, 2020

Hi @michal.moshe 

I just tried this and it worked for me.  Replace your company instance name, project, and word to search in a comment.

https://myCompany.atlassian.net/rest/api/2/search?jql=project%3DmyProject%20AND%20comment%20~%20wordToSearch

Suggest an answer

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

Atlassian Community Events