Forums

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

Where have my comments gone?

Ashish Grover December 11, 2011

I built a plugin which creates subtask of a given isssue and adds a comment like "Created using XYZ Plugin".

But when i search with a query say:

comment ~ "XYZ"

no results show up.

However, after editing the issue in any way for example editing or adding a comment or any field, results in the issue being showed up in the search results.

What could possibly the problem be?

2 answers

1 accepted

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
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.
December 11, 2011

Try re-indexing the issue in the plugin using IssueIndexManager.

ComponentManager.getInstance().getIndexManager().reIndex(yourIssue)

2 votes
Nic Brough -Adaptavist-
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.
December 11, 2011

Your plugin is not re-indexing the issue after adding the comment.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events