I'm using python to query my JIRA board so display that data elsewhere. I'm able to display all the issues, but not their parent issues (if they have one). I believe I saw somewhere that this is a API permission issue, but I was unable to figure out how to give the API permissions to view parents issues. Right now, if I run these commands:
Hi @John Light, if the user who runs the API can see the Parent issues on the site, this means they have the right permissions to run the API, therefore, Ensure that the user or API token you are using has the necessary permissions to view parent issues. This typically involves having "Browse Projects" permission for the projects containing both the child and parent issues.
Also, it seems that you're using "parent_link = issue.fields.customfield_10008 " for the parent reference. This could be the issue, as the parent reference field is named "Parent." You can double-check that on one of the child issues using this API here.
What should be custom field number be? Or how should that line be structured? I just saw that somewhere online, so I'm not sure what should be there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It should be issue.fields.parent, you can try this in your code, you can also check all field IDs from this API end point here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great, that worked. Where did you find that it should be structured as "issue.fields.parent"? Just so I know where I can reference if I want to see other attributes of issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should typically find any field reference by calling this API endpoint.
you will just need to structure the returned JSON response using a browser add-on or any other tool
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.