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.
Discover how Atlassian is revolutionizing service management with cutting-edge solutions for AI-powered support, HR Service Management, or DevOps connectivity.
Register here ⬇️Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.