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.
Assuming you are developing a servlet, use IssueManager: https://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/IssueManager.html#getIssueObject%28java.lang.String%29
hi.
you mean sth like this?
https://docs.atlassian.com/jira/REST/latest/#id109110
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.
Thanks Jobin! It worked. The problem is in other place.
It looks like you're new here. Sign in or register to get started.