I need to know list of Issues in a Single Project Using java API.
Hello @Ramesh Lakshmanasamy
Like this
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.MutableIssue
def project = ComponentAccessor.getProjectManager().getProjectByCurrentKey("TEST")
def issueids = ComponentAccessor.getIssueManager().getIssueIdsForProject(project.id)
List<MutableIssue> issueList
issueids.each {it ->
issueList.add(ComponentAccessor.getIssueManager().getIssueObject(it))
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You re welcome. If it helps you, please mark answer as accepted :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
There is one direct method to get all issue objects , but that is being deprecated :
you can use jql via java api as well.
Regards
Prakhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.