I try to created a plugin in issue's operation menu and it is OK to pass the issueId, how can pass the issueKey?

Shaokai Wen May 13, 2013

for example: /plugins/servlet/stampgen?id=${issueId}, is there a way to pass issue key. I didn't find an API to search the issue with the ID. I find there is an API to search an issue by Key.

2 answers

0 votes
C_ Faysal
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.
May 13, 2013
0 votes
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.
May 13, 2013
Shaokai Wen May 13, 2013

long issueid = Long.parseLong(req.getParameter("id"));
Issue issue = (Issue) issuemanager.getIssueObject(issueid);

I tried the above code. and the issue returned is null. Do you have any suggestions. Thanks!! Appreciate your help.

Shaokai Wen May 14, 2013

Thanks Jobin! It worked. The problem is in other place.

Suggest an answer

Log in or Sign up to answer