Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically fill a form

sonag December 20, 2024

 

Greetings, community,

Allow 
me to begin by providing some background. I need to programmatically create a JIRA ticket that attaches a form and automatically populates the details. I attempted to attach the form via this endpoint,

url 
= "https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{issueIdOrKey}/form/{formId}/action/submit"

and 
I encountered the following error,

"detail": 
"The specified form ID could not be located or the user lacks permission to access it."

Could 
you inform me about the types of roles/access I require?

2 answers

0 votes
sonag December 30, 2024

Hi @Humashankar VJ ,

I am able to access the form via UI. But, when I try to call it via endpoint, I get the error as "user not authorized."
I was wondering what type of access/roles I need.

 

Humashankar VJ
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.
December 30, 2024

Hi @sonag 

Can you try obtaining the necessary IDs (cloud ID, form ID) for making API requests, make use of this link which is relevant to your problem statement  How to get Forms Data VIA RestAPI in Cloud

Best Regards

 

sonag December 30, 2024

Hey, I tried with the cloud ID and form ID, But still I was getting this error

0 votes
Humashankar VJ
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.
December 20, 2024

Hi @sonag 

Can you confirm that the form you are trying to attach must be accessible to your user account.

Best Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events