Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is anyone experimenting with the new Forms REST API using AforJ?

Iain McCarthy May 13, 2023

Per Simon Herd's update in the JSDCLOUD issue here & accompanying doc

I note instructions on connection methods using Basic Auth or the more secure setup for Connect apps, but would really love some specifics on Automation for Jira.

Does anyone have a simple example they could share? Is Automation for Jira treated as an external app making a request w/Basic or something else? Using the Web Request action I'm getting...

401 unauthorized for the Connect request format:

https://api.atlassian.com/ex/jira/{{varInstanceID}}/forms/issue/{{issue.key}}/form

404 route not found for the Basic auth request format: 

https://api.atlassian.com/jira/forms/cloud/{{varInstanceID}}/issue/{{issue.key}}/form

I'm just trying to return the index to get a form ID for a given issue.

Headers are:

 Content-Type application/json
 X-ExperimentalApi opt-in
 Authentication Basic [base64 token]

Thanks for any assistance!

 

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2023

Hi @Iain McCarthy 


I think you are using the wrong End Point for AforJ

You should use:

https://api.atlassian.com/jira/forms/cloud/{{cloudId}}/issue/{{issueId}}/form

So as always, get rid of the 'ex'  

Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2023

And the header you provide should be:

Accept: application/json

See here

image.png 

Iain McCarthy July 11, 2023

Thanks @Rudy Holtkamp all up and running now (well, form parsing issues aside mentioned in my other thread). Appreciate the response!  

0 votes
Kalin U
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2023

Is your Base64 token following the format username@domain:APIkey?

Iain McCarthy May 14, 2023

@Kalin U yes that's correct, following the instructions here. Have you have some success? 

TAGS
AUG Leaders

Atlassian Community Events