Hey Everyone,
I'm trying to get an issue from a project and its work but I did get issues field.
There is how I did :
1. use Oauth2 to get user authorization with scope: Jira-work
2. querying to get project ID ( work )
3. querying to get issue with this link : "https://api.atlassian.com/ex/jira/" . $cloudId . "/rest/api/2/project/search?jql=project%3D" . $projectId . "&fields=issue,status,name&startAt=0&maxResults=500";
For this last API call i get only those fields :
could you please tell me how to get issues field ?
Hi @masskoder ,
welcome to the community!
If I understand your problem correctly, what you are trying to do is to get issues in the specific project.
You can use issue search endpoint with JQL: project=xxx, where xxx is your project id
Thanks for your quick answer.
I try again with this endpoint : https://api.atlassian.com/ex/jira/" . $cloudId . "/rest/api/3/project/search?jql=project=" . $projectId ;
I still get only project fields in response, not issues fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @masskoder ,
please replace
"/rest/api/3/project/search?jql=project=" . $projectId ;
with
"/rest/api/3/search?jql=project=" . $projectId ;
If there's the word "project" in the endpoint, it returns information about projects, otherwise about issues...
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.