As an extra option of workaround to the feature request "Include Forms when cloning an issue", this guide is designed to assist users in using the Forms API to automatically duplicate a form between issues.
Copy a form during an issue status transition to a linked issue:
The request method will be POST:
POST https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{sourceIssueIdOrKey}/form/copy/{targetIssueIdOrKey}
- Use your Cloud ID (not Org ID). Find it in the URL when accessing your Atlassian admin page, e.g., https://<instance>.atlassian.net/admin/jira-service-desk/portal-only-customers.
- Use the issue ID or Key dynamically with smart values like {{issue.id}} or {{issue.key}}.
- Access the formId using smart values like {{issue.forms.formTemplateID}}. For instance, if the formTemplateID is "cf638d8b-0498-4b80-8fb1-f547dc769421", use {{issue.forms.cf638d8b-0498-4b80-8fb1-f547dc769421}} to get the formId.
- Add the formId dynamically with:
{{issue.forms.formTemplateID}}
- Specify the targetIssueIdOrKey for the issue you want to copy to. Use the following smart value to get the linked issue's ID:
{{issue.issuelinks.inwardIssue.key}}
- Your automation rule setup should resemble the image below:
Note: By enabling "Delay execution of...", you ensure the rule waits for the web request to complete before proceeding with further actions, which is vital when the request outcome affects subsequent automation steps.
Watch the process in action in the video below:
For Different Projects: The process is similar, with a few additional details:
Watch the cross-project process in the video below:
Bruno Altenhofen
Atlassian Engineer - The guy from Proforma(Jira Forms)
e-Core
Krakow - Poland
1 accepted answer
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
13 comments