I need to know list of Issues in a Single Project Using java API.
Hello @Ramesh Lakshmanasamy
Like this
import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.issue.MutableIssuedef project = ComponentAccessor.getProjectManager().getProjectByCurrentKey("TEST")def issueids = ComponentAccessor.getIssueManager().getIssueIdsForProject(project.id)List<MutableIssue> issueListissueids.each {it -> issueList.add(ComponentAccessor.getIssueManager().getIssueObject(it))}
Hi @Ramesh Lakshmanasamy
I will suggest you to use below method. It will give you a list of all issue ids with which you can create issue Objects.
https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/IssueManager.html#getIssueIdsForProject-java.lang.Long-
There is one direct method to get all issue objects , but that is being deprecated :
https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/IssueManager.html#getProjectIssues-org.ofbiz.core.entity.GenericValue-
you can use jql via java api as well.
Regards
Prakhar
Thanks @Mark Markov i tried above solution its working fine.
You re welcome. If it helps you, please mark answer as accepted
It looks like you're new here. Sign in or register to get started.