The only mechanism I can find at this time is to query the `epics` endpoint which returns the primaryProgramId as part of the response. This isn't adequate for my needs
Hi @Eric Salerno
Thanks for your question. To return a list of Programs in Jira Align, you can use the following API call using Swagger OR via the CURL command.
GET API using CURL
curl -X GET "https://<ja_instance_here>.jiraalign.com/rest/align/api/2/Programs" -H "accept: application/json;odata.metadata=minimal;odata.streaming=true" -H "Authorization: bearer <token>"
OR
GET API using Swagger
Go to JA > Edit Profile > API Token
Copy the whole content of the field API 2.0 Token
Go to the Swagger, present on
https://<ja_instance_here>.jiraalign.com/rest/align/api/docs/index.html
<ja_instance_here>
Authenticating with your Token for API v2 (that you obtained on your JA User Menu > Edit Profile > API Token)
Find the Programs Endpoint, select the GET method (it will be the first GET on the list), and click on Try it Now
Click on Execute and see if the details of it return
Copy the content of the request body
Should you need any help with the above instructions, please kindly raise a JA support ticket using this link and we'll be more than happy to assist you!
yeah, https:xxxxx.jiraalign.com/rest/align/api/2/Programs works for me
Interesting, is there a version where this lights up or is there a requirement that the user account be in a certain role? I can query `/epics/{num}` but when I hit `/programs/{num}` i get a `403` error
@Eric Salerno
The only thing I'm aware of is that for JA non-Super Admin roles, you have to make sure to enable the Programs toggle permission:
Should you still face any issues retrieving the information via API please kindly raise a JA support ticket using this link and we'll be more than happy to assist you!
It looks like you're new here. Sign in or register to get started.