Forums

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

Searching an Issue based on and issue key JIRA plugin development

Prameesha Samarakoon
Contributor
September 8, 2013

Hi,

Is it possible to search for an issue based on the issue key? I want to add issue key to the where clause, instead of the status in the query below. I can use the issueKey in the orderBy clause but not in the where clause.

builder.where().status("Resolved");
builder.orderBy().issueKey(order);

When used in the where clause as shown below an error is displayed saying ''Constructor call must be the first statement in a constructor".

builder.where().issueKey().("1234");

Am I doing something wrong or is it not possible to add an issue key to the following statement?

Any help would be appreciated.

Thanks


1 answer

1 accepted

1 vote
Answer accepted
Timothy
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.
September 8, 2013

Does this not work?

final JqlQueryBuilder builder = JqlQueryBuilder.newBuilder();

builder.where().issue().eq("ABC-123");

Query query = builder.buildQuery();

Prameesha Samarakoon
Contributor
September 9, 2013

It works fine, Thanx a lot!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events