I’m currently working on a project that involves Jira 3.13.x, SOAP, and PHP. I’m trying to figure out how to get a list of all issues that belong to a specific project. Is this something that can be done?
Also, I was wondering if it’s possible to search for issue keys using a particular search term. If anyone has experience with this, I’d really appreciate some guidance on how to go about it.
I’ve been stuck on this for a while now, so any tips or advice would be super helpful. Thanks in advance for your time!
hey, i’ve done this before! for project issues, use getIssuesFromJqlSearch with JQL like ‘project = YOURKEY’. for issue keys, try ‘issuekey ~ “TERM*”’.
watch out tho, SOAP can be slow af. might wanna cache stuff if ur dealing with loads of issues.
I’ve actually tackled a similar problem in my work with Jira’s SOAP API. For fetching project-specific issues, you’ll want to use the getIssuesFromJqlSearch method. The trick is crafting the right JQL query. Something like ‘project = YOUR_PROJECT_KEY’ should do the trick.
As for searching issue keys, you can incorporate that into your JQL as well. For instance, ‘project = YOUR_PROJECT_KEY AND issuekey ~ “SEARCHTERM*”’ would find issues in your project with keys starting with SEARCHTERM.
One word of caution: the SOAP API can be quite slow, especially with large datasets. I’d recommend implementing some sort of caching mechanism if you’re dealing with a lot of issues. Also, don’t forget to handle pagination properly to avoid timeouts.
Lastly, while the SOAP API works, you might want to consider transitioning to the REST API in the future if possible. It’s generally faster and more flexible in my experience.
I’ve worked with Jira’s SOAP API in PHP before, and yes, it’s definitely possible to fetch project-specific issues. You’ll want to use the JiraSoapService’s getIssuesFromJqlSearch method. The JQL (Jira Query Language) makes it easy to filter issues by project.
For searching issue keys, you can use the same method with a JQL query that includes the ‘issuekey’ field. Something like ‘issuekey ~ “PROJ-*”’ would find all issues in the PROJ project.
Remember to set up proper error handling and consider pagination for large result sets. The SOAP API can be a bit slow with big requests, so you might want to cache results if possible. Hope this helps point you in the right direction!