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 :(
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Eric Salerno , the rationale behind Jira Align REST API is that your bearer token is as good as your user in the UI, meaning that whatever your user can do in the UI will be allowed to your bearer token via API.
If your user can't browse to Programs in the UI, then your bearer token won't be allowed as well.
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.