Forums

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

Is there simpler way (groovy script or restApi) to create multiple Request types and add fields?

Krishnanand Nayak April 21, 2025

looking for a solution in Datacenter to automate the creation of Request Types and adding filed to the form.

2 answers

2 votes
Ziad Bakhiet
Contributor
April 21, 2025

Hello @Krishnanand Nayak  

You can use automation to create requests and submit forms using APIs.

Here are the relevant resources:

  • Request Creation API: Use the Jira Service Desk API to create customer requests.
  • Form Submission API: For form submissions, refer to the ProForma API documentation. Check the following endpoint:
/rest/proforma/1/issue/{issueKey}/form/{formId}/submit

Let me know if you need further clarification!

Best regards,

Ziad

Krishnanand Nayak April 22, 2025

i mean this screen:

Screenshot 2025-04-22 093932.png

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
April 23, 2025

Hi @Krishnanand Nayak

To answer your question, it is possible to make a POST request to update the fields on a screen.

Something like:-

post("https://localhost:8080/rest/api/2/screens/addToDefault/10001")

You can refer to the REST API for Jira DC  for all the options avaiable.

I would suggest using the ScriptRunner Console along with the REST Endpoint, to include the fields.

Let me know if you need any help and I can try to provide an example code.

Thank you and Kind regards,
Ram

Krishnanand Nayak April 23, 2025

thanks @Ram Kumar Aravindakshan _Adaptavist_ . the ultimate idea is to us SR but was stuck due to the finding the correct Rest call. Let me try your solution.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events