• 1,578
    • Hide

      As of 30 October, we have finished the process of assigning Universal Unique Identifiers (UUIDs) to all existing forms, including the older ones that initially lacked them. This ensures that our Forms APIs now support all forms.

      We are excited to announce that we have released the capability to obtain form attachments through our Forms API and the Jira Service Management Public API. You can find all the details about these updates in the changelog entries Get metadata on all form attachments and Supporting form attachments when get attachments.

      Furthermore, we now support the saving of form answers and the retrieval of external form data. The changelog entry is here.

      Show
      As of 30 October, we have finished the process of assigning Universal Unique Identifiers (UUIDs) to all existing forms, including the older ones that initially lacked them. This ensures that our Forms APIs now support all forms. We are excited to announce that we have released the capability to obtain form attachments through our Forms API and the Jira Service Management Public API. You can find all the details about these updates in the changelog entries Get metadata on all form attachments and Supporting form attachments when get attachments . Furthermore, we now support the saving of form answers and the retrieval of external form data. The changelog entry is here .
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    • Hide
      Update 30 October 2023 - API support for older forms, saving form answers and form attachments
      As of 30 October, we have finished the process of assigning Universal Unique Identifiers (UUIDs) to all existing forms, including the older ones that initially lacked them. This ensures that our Forms APIs now support all forms.
       
      We are excited to announce that we have released the capability to obtain form attachments through our Forms API and the Jira Service Management Public API. You can find all the details about these updates in the changelog entries Get metadata on all form attachments and Supporting form attachments when get attachments.
       
      Furthermore, we now support the saving of form answers and the retrieval of external form data. The changelog entry is here.
       
      Therefore, we are closing this issue as resolved.
       
      Iris
      Developer - Forms
       

       

      Show
      Update 30 October 2023 - API support for older forms, saving form answers and form attachments As of 30 October, we have finished the process of assigning Universal Unique Identifiers (UUIDs) to all existing forms, including the older ones that initially lacked them. This ensures that our Forms APIs now support all forms.   We are excited to announce that we have released the capability to obtain form attachments through our Forms API and the Jira Service Management Public API. You can find all the details about these updates in the changelog entries Get metadata on all form attachments and Supporting form attachments when get attachments .   Furthermore, we now support the saving of form answers and the retrieval of external form data. The changelog entry is here .   Therefore, we are closing this issue as resolved.   Iris Developer - Forms    

      Note: Forms API are now available and documentation is available here. We are continuing to work on the functionality available which is why this issue remains In Progress.

      Problem Definition

      It would be nice to have a REST API (similar to what Jira already has for its Core features) to integrate it with an external application and manage Forms.

      Reproducing the following APIs form ProForma in Server/DC would be a good start:

      Form Functions

      • Add a form to an issue
      • Submit a form  
      • Reopen a form 
      • Unlock a form
      • Copy a form from one issue to another
      • Change the visibility of a form 
      • Attach PDF of a form to an issue 

      Reporting / Export

      • Access an array of form responses 
      • Download a PDF, XLSX
      • or JSON of form 

      Workaround to access the structure of the forms:

      Examples of using the Experimental Forms API:

            [JSDCLOUD-10671] REST API for ProForma/Forms in Jira

            Iris Zhang added a comment -

            467bada285f8 Hi Rudy, thank you for pointing out the error in our changelog. We have fixed the links. We greatly appreciate your help.

            Iris Zhang added a comment - 467bada285f8 Hi Rudy, thank you for pointing out the error in our changelog. We have fixed the links. We greatly appreciate your help.

            Rudy Holtkamp added a comment - Hi  Iris (and other Atlassian), If we go to the link https://developer.atlassian.com/cloud/forms/changelog/#CHANGE-1193 The links mentioned there are referring to internal Atlassian pages: https://developer.stg.internal.atlassian.com/cloud/forms/rest/api-group-forms-on-customer-request/#api-request-issueidorkey-form-formid-attachments-get https://developer.stg.internal.atlassian.com/cloud/forms/rest/api-group-forms-on-issue/#api-issue-issueidorkey-form-formid-attachments-get Could you please correct them? 

            a6985d6e2f93 Hey, we have released Forms API for Jira Cloud a while ago. Please see the DAC here

            Iris Zhang added a comment - a6985d6e2f93 Hey, we have released Forms API for Jira Cloud a while ago. Please see the DAC here . 

            Based on the Proforma API documentation page, the API is only supported on Jira Server and Jira Data Center. Are there plans to support Jira Cloud as well?

            Ricardo Salazar added a comment - Based on the Proforma API documentation page, the API is only supported on Jira Server and Jira Data Center. Are there plans to support Jira Cloud as well?

            Update 8 Aug 2023 - API support for creating customer request with a form
            As of 7 August, the ability to supply form answers when creating a customer request via the Jira Service Management Public API has shipped. The documentation for this endpoint is here and changelog entry may be found here.
             
            We are now working on assigning UUIDs to older forms that may not have them, so that our APIs are able to support all forms, and implementing an API endpoint to support updating the form answers on a portal request.
             
            Thanks,
             
            Paige
            Developer - Forms

            Paige Martin added a comment - Update 8 Aug 2023 - API support for creating customer request with a form As of 7 August, the ability to supply form answers when creating a customer request via the Jira Service Management Public API has shipped. The documentation for this endpoint is here and changelog entry may be found here .   We are now working on assigning UUIDs to older forms that may not have them, so that our APIs are able to support all forms, and implementing an API endpoint to support updating the form answers on a portal request.   Thanks,   Paige Developer - Forms

            Calvin Lee added a comment - - edited

            The endpoint for simplified form answers keeps returning FORM_NOT_FOUND even though it's the ID that's returned from the form index request. Would support be able to help with this? Disregard! I didn't know there's a smart value for this

            {{issue.properties."proforma.forms".forms.uuid}} 

            Calvin Lee added a comment - - edited The endpoint for simplified form answers keeps returning FORM_NOT_FOUND even though it's the ID that's returned from the form index request. Would support be able to help with this? Disregard! I didn't know there's a smart value for this {{issue.properties. "proforma.forms" .forms.uuid}}

            Update 19 July 2023 - More APIs has shipped

            We continue to release new APIs for Forms. The list of recent changes are available here.

            This issue will remain In Progress until we have shipped the full set of APIs we have planned as part of the second milestone for Forms APIs.

            Thanks

            Simon
            PM - Forms/ProForma

            Simon Herd (Inactive) added a comment - Update 19 July 2023 - More APIs has shipped We continue to release new APIs for Forms. The list of recent changes are available here. This issue will remain In Progress until we have shipped the full set of APIs we have planned as part of the second milestone for Forms APIs. Thanks Simon PM - Forms/ProForma

            Been 2 months since the last update on this. Sure would be nice to hear something positive on progress...

            Michael Flowers added a comment - Been 2 months since the last update on this. Sure would be nice to hear something positive on progress...

            John May added a comment -

            Any status update yet by chance?

            John May added a comment - Any status update yet by chance?

            What is the status on this please?

             

            • Resolve and share back: June 7, 2023

            Brendan S. added a comment - What is the status on this please?   Resolve and share back : June 7, 2023

            Great news!

            Mauricio Heberle added a comment - Great news!

            Simon Herd (Inactive) added a comment - - edited
            Update 11 May 2023 - The first batch of APIs has shipped

            As of 5 May, we shipped the first batch of Forms APIs to all customers.  The documentation for these endpoints is available here https://developer.atlassian.com/cloud/forms/rest/intro/

            We are now working on the second milestone for Forms APIs, which will allow Marketplace Partners such as Refined to integrate forms into their products. We have published a Request For Comment regarding the Forms APIs on the Atlassian Developer Community site (available here). 

            The RFC is running on the following milestones:

            • Publish: May 9, 2023
            • Discussion open until: May 30, 2023
            • Resolve and share back: June 7, 2023

            Please note This issue will remain In Progress until we have shipped the second milestone for Forms APIs.

            Thanks

            Simon
            PM - Forms/ProForma

            Simon Herd (Inactive) added a comment - - edited Update 11 May 2023 - The first batch of APIs has shipped As of 5 May, we shipped the first batch of Forms APIs to all customers.  The documentation for these endpoints is available here https://developer.atlassian.com/cloud/forms/rest/intro/ We are now working on the second milestone for Forms APIs, which will allow Marketplace Partners such as Refined to integrate forms into their products. We have published a Request For Comment regarding the Forms APIs on the Atlassian Developer Community site (available here ).  The RFC is running on the following milestones: Publish : May 9, 2023 Discussion open until : May 30, 2023 Resolve and share back : June 7, 2023 Please note This issue will remain In Progress until we have shipped the second milestone for Forms APIs. Thanks Simon PM - Forms/ProForma

            Update 8 May 2023 - The first batch of APIs has shipped

            As of 5 May, we shipped the first batch of Forms APIs to all customers.  The documentation for these endpoints is available here https://developer.atlassian.com/cloud/forms/rest/intro/

            We are now working on the second milestone for Forms APIs, which will allow Marketplace Partners such as Refined to integrate forms into their products.

            This issue will remain In Progress until we have shipped the second milestone

            Thanks

            Simon
            PM - Forms/ProForma

            Simon Herd (Inactive) added a comment - Update 8 May 2023 - The first batch of APIs has shipped As of 5 May, we shipped the first batch of Forms APIs to all customers.  The documentation for these endpoints is available here https://developer.atlassian.com/cloud/forms/rest/intro/ We are now working on the second milestone for Forms APIs, which will allow Marketplace Partners such as Refined to integrate forms into their products. This issue will remain In Progress until we have shipped the second milestone Thanks Simon PM - Forms/ProForma

            Please add this feature. We want to be able to use Refined together with Jira Forms - and Refined needs these APIs to integrate with Jira Forms.

            Anthony DiGiorgio added a comment - Please add this feature. We want to be able to use Refined together with Jira Forms - and Refined needs these APIs to integrate with Jira Forms.

            Hello!

            Is there any update on the progress?
            And will this also bring some new actions for automations?

            Best regards,
            Anton

            Anton Warkentin (eficode) added a comment - Hello! Is there any update on the progress? And will this also bring some new actions for automations? Best regards, Anton

            We are using Refined Theme and are really missing the ability to have some dependent/conditional fields. It would be great to open up that possibility for 3rd party vendors.

            Bernd Anderer added a comment - We are using Refined Theme and are really missing the ability to have some dependent/conditional fields. It would be great to open up that possibility for 3rd party vendors.

            Please provide an update on work, or ETA for release.

            Eli Devlin added a comment - Please provide an update on work, or ETA for release.

            Besides an ETA an Update of the current state would be great ....

            Norman Puhl added a comment - Besides an ETA an Update of the current state would be great ....

            +1 for this feature.

            Please provide ETA if possible

            Mohammad Hamid Khan added a comment - +1 for this feature. Please provide ETA if possible

            +1 on this, we need this feature urgently too as forms have more features that we need

            Wei Xiang Koh added a comment - +1 on this, we need this feature urgently too as forms have more features that we need

            We're receiving several requests from clients asking for Forms support in our mobile app, do you have any rough deadline for such API's, so we can update our customers???

            Mohamad Alhajj - Infosysta added a comment - We're receiving several requests from clients asking for Forms support in our mobile app , do you have any rough deadline for such API's, so we can update our customers???

            Also looking for an ETA on release of this feature...

            Michelle Beetham added a comment - Also looking for an ETA on release of this feature...

            fishern added a comment -

            bump on this

            fishern added a comment - bump on this

            Can you provide us an ETA when this feature will be released?

            KanamkombilJose, Max added a comment - Can you provide us an ETA when this feature will be released?

            Simon is presenting at Team '23, wonder if they're holding on to any more details until then? 

            Marina Ferraz McCashin added a comment - Simon is presenting at Team '23, wonder if they're holding on to any more details until then? 

            Or at least an over estimated guess.  Are you working on this each day or is this just on a roadmap waiting for further prioritization.  Are we looking at a month? 6months or a year?  

            Carlos McCray added a comment - Or at least an over estimated guess.  Are you working on this each day or is this just on a roadmap waiting for further prioritization.  Are we looking at a month? 6months or a year?  

            Eli Devlin added a comment -

            Is there an expected release date for this?

            Eli Devlin added a comment - Is there an expected release date for this?

            Form created/submitted change the corresponding com.atlassian.jira.plugins.proforma-managed-fields type custom fields so they should be picked up by the issue event listener, but automation rules with the "issue edited" and "field changed" triggers are not triggered. It appears an event listener for form actions is required.

            Alex van Vucht added a comment - Form created/submitted change the corresponding com.atlassian.jira.plugins.proforma-managed-fields type custom fields so they should be picked up by the issue event listener, but automation rules with the "issue edited" and "field changed" triggers are not triggered. It appears an event listener for form actions is required.

            Do you plan to have an event listener also to know when a form was created / updated / submitted ?
             
             
             

            Florian Royer added a comment - Do you plan to have an event listener also to know when a form was created / updated / submitted ?      

             

            Update 10 January 2023

            Work has begun on this feature. As part of the initial milestone, we are looking to support the following features via the API. The exact endpoints will be confirmed closer to release.

            • Export: Exporting a form and Jira fields
            • Get Form Data: Retrieve form data in a variety of formats, including a simplified answer array and also PDF/XLSX
            • Form Operations: Essential operations such as reopen/submit and changes to visibility (internal/external).

            More updates will be provided in due course.

             

             

            Simon Herd (Inactive) added a comment -   Update 10 January 2023 Work has begun on this feature. As part of the initial milestone, we are looking to support the following features via the API. The exact endpoints will be confirmed closer to release. Export: Exporting a form and Jira fields Get Form Data: Retrieve form data in a variety of formats, including a simplified answer array and also PDF/XLSX Form Operations: Essential operations such as reopen/submit and changes to visibility (internal/external). More updates will be provided in due course.    

            • Add a form to an issue
            • Submit a form

            Those two would be great to have exposed to an API

            Eirik Aanonsen added a comment - Add a form to an issue Submit a form Those two would be great to have exposed to an API

            It would be great to be able to add/enable/disable options via the api!

            Rudy Holtkamp added a comment - It would be great to be able to add/enable/disable options via the api!

            I am happy to see that work is finally moving forward.  Like others, we rely heavily on the Refined interface, and our current workaround for the Forms is clunky, confusing, and frustrating to users.  We need Refined to be able to support the forms/ProForma functionality as soon as possible.  This has been a significant barrier in our migration to Jira.

            Marshall Curtis added a comment - I am happy to see that work is finally moving forward.  Like others, we rely heavily on the Refined interface, and our current workaround for the Forms is clunky, confusing, and frustrating to users.  We need Refined to be able to support the forms/ProForma functionality as soon as possible.  This has been a significant barrier in our migration to Jira.

            fishern added a comment -

            Thank you for the update Simon. 

            Another heavy Refined user here so this is amazing news. Can't wait to get this pushed though so we can make our tools more utilized. 

            fishern added a comment - Thank you for the update Simon.  Another heavy Refined user here so this is amazing news. Can't wait to get this pushed though so we can make our tools more utilized. 

            Hi Simon,

            Happy to hear that work will start in Jan. Like Eric said, I honestly hope that the rendering will include capabilities that will enable Refined to get forms to work correctly at their end. We rely on Refined and having forms function within Refined.

            So, I really hope as work begins, the support of rendering and submission of a Form outside of Jira is implemented sooner or later, if Refined is considered outside of Jira.

            Cheers,

            =)Sussi

            Sussi Åström added a comment - Hi Simon, Happy to hear that work will start in Jan. Like Eric said, I honestly hope that the rendering will include capabilities that will enable Refined to get forms to work correctly at their end. We rely on Refined and having forms function within Refined. So, I really hope as work begins, the support of rendering and submission of a Form outside of Jira is implemented sooner or later, if Refined is considered outside of Jira. Cheers, =)Sussi

            Eric Hong added a comment - - edited

            Hi Simon,

            Thanks for the update and nice to hear that work will begin soon. Can you please elaborate on the initial work not aiming to support rendering/submission of forms outside of Jira? Would the JSM customer role have permissions to access this API?

            Depending on what rendering we're talking about, we at Refined may need that to get the forms to function correctly on our end. We have at least 100+ customers who are affected, and this number grows by the day considering it's also a blocker for many new or prospective customers. Many of the comments in this thread (approx. 20) are indicative of the impact this is having on customers using Refined.

             

            Best regards,

            Eric

            Eric Hong added a comment - - edited Hi Simon, Thanks for the update and nice to hear that work will begin soon. Can you please elaborate on the initial work not aiming to support rendering/submission of forms outside of Jira? Would the JSM customer role have permissions to access this API? Depending on what rendering we're talking about, we at Refined may need that to get the forms to function correctly on our end. We have at least 100+ customers who are affected, and this number grows by the day considering it's also a blocker for many new or prospective customers. Many of the comments in this thread (approx. 20) are indicative of the impact this is having on customers using Refined.   Best regards, Eric

            Hi Simon,

            Thank you for the updates.

            I understand that the initial work is not aiming to support the rendering and submission of a form outside of Jira but it will be supported within Q1/Q2 2023, correct?

            Thank you. 

            Hasham Iqbal added a comment - Hi Simon, Thank you for the updates. I understand that the initial work is not aiming to support the rendering and submission of a form outside of Jira but it will be supported within Q1/Q2 2023, correct? Thank you. 

            Simon Herd (Inactive) added a comment - - edited
            Update 29 November 2022

            Preparation work for building the API has progressed. We have identified some prerequisite work that we need to do in order to create a public API (e.g. giving each form a unique ID).  The development work on the API will formally start in January 2023. 

            The hope is to start making API endpoints available before April 2023; however, I cannot be certain when all of the APIs we want to build will be complete.

            Please note that this initial work is not aiming to support the rendering and submission of a Form outside of Jira. 

            Regards,

            Simon
            Product Manager Forms/ProForma

            Simon Herd (Inactive) added a comment - - edited Update 29 November 2022 Preparation work for building the API has progressed. We have identified some prerequisite work that we need to do in order to create a public API (e.g. giving each form a unique ID).  The development work on the API will formally start in January 2023.  The hope is to start making API endpoints available before April 2023; however, I cannot be certain when all of the APIs we want to build will be complete. Please note that this initial work is not aiming to support the rendering and submission of a Form outside of Jira.  Regards, Simon Product Manager Forms/ProForma

            We are currently looking for ways to use Automation with Forms, and there's a big gap in the API/smartvalues when working with forms.

            Usecase:

            We have an Employee Onboarding form, where we ask for First name and Last name. I want to update the service request Summery with the concatenation of these fields, so that our tickets doesn't end up as a long list of "Employee onboarding" (name of the form) without details in their summary.

            Asbjørn Søborg-Madsen added a comment - We are currently looking for ways to use Automation with Forms, and there's a big gap in the API/smartvalues when working with forms. Usecase: We have an Employee Onboarding form, where we ask for First name and Last name. I want to update the service request Summery with the concatenation of these fields, so that our tickets doesn't end up as a long list of "Employee onboarding" (name of the form) without details in their summary.

            ahsanriaz added a comment -

            Add this feature as soon as possible , it's a show stopper 

            ahsanriaz added a comment - Add this feature as soon as possible , it's a show stopper 

            John May added a comment -

            Please add this feature as soon as possible. Most of our requests use forms and we need this added for Refined.

            John May added a comment - Please add this feature as soon as possible. Most of our requests use forms and we need this added for Refined.

            I'm hoping it's being worked on now but the roadmap is signposting for public release around Q2 2023

            https://www.atlassian.com/roadmap/cloud??&search=api&p=b61dce33-c0 

            If there is an opportunity to get involved sooner for input / feedback / testing... Please let us know. We're desperate for this.

            David Meredith added a comment - I'm hoping it's being worked on now but the roadmap is signposting for public release around Q2 2023 https://www.atlassian.com/roadmap/cloud??&search=api&p=b61dce33-c0   If there is an opportunity to get involved sooner for input / feedback / testing... Please let us know. We're desperate for this.

            Please enable Refined to work with custom forms. Default portal is not enough to work as a customer facing service portal and Refined has really made a difference here, Lets get the Forms API going as soon as possible please!

            tomi.lindroos added a comment - Please enable Refined to work with custom forms. Default portal is not enough to work as a customer facing service portal and Refined has really made a difference here, Lets get the Forms API going as soon as possible please!

            To fly for real with Jira Cloud we really need this feature. Please consider it asap. 

            Susanne Harelius added a comment - To fly for real with Jira Cloud we really need this feature. Please consider it asap. 

            Is there an update to this?

             

            Refined is one of your best developers out there , they really bring the Customer Portal experience to what is needs to be to be really competitive.

             

            All JSM functionality is present through Refined, but they lack API access to be able to use forms, which is now native JSM functionality. With that would only be logical that Atlassian also builds API support for Forms, so Refined can leverage it.

             

            Pretty please prioritize this so we can have the best UX customer experience possible.

             

            Bas Rathje added a comment - Is there an update to this?   Refined is one of your best developers out there , they really bring the Customer Portal experience to what is needs to be to be really competitive.   All JSM functionality is present through Refined, but they lack API access to be able to use forms, which is now native JSM functionality. With that would only be logical that Atlassian also builds API support for Forms, so Refined can leverage it.   Pretty please prioritize this so we can have the best UX customer experience possible.  

            We need this to be able to use it with Refined.

            Adam Gołaszewski added a comment - We need this to be able to use it with Refined.

            Derek White added a comment - - edited

            @Manas Bagde

            Can't talk about the 2nd URL as I only tested the first. I'd assume the 2nd URL is for updating or some other purpose.

            The first URL definitely works. You must perform a POST request. I would verify your authorization header, site, cloudId, and Smart Value syntax (my original post's code-block has the syntax correct). You can also check the response code and body for details on why it failed. Without more info, I can't say much other than "works for me".

            Make sure your credentials are base64 encoded in the header. If your username is "Aladdin" and your API key is "open sesame", you would combine them with a ":" to become "Aladdin:open sesame", run it through a base64 encoder (CLI, online tool you trust, etc) and you would get "QWxhZGRpbjpvcGVuIHNlc2FtZQ==". So, your header would be:

            Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

            Derek White added a comment - - edited @Manas Bagde Can't talk about the 2nd URL as I only tested the first. I'd assume the 2nd URL is for updating or some other purpose. The first URL definitely works. You must perform a POST request. I would verify your authorization header, site, cloudId, and Smart Value syntax (my original post's code-block has the syntax correct). You can also check the response code and body for details on why it failed. Without more info, I can't say much other than "works for me". Make sure your credentials are base64 encoded in the header. If your username is "Aladdin" and your API key is "open sesame", you would combine them with a ":" to become "Aladdin:open sesame", run it through a base64 encoder (CLI, online tool you trust, etc) and you would get "QWxhZGRpbjpvcGVuIHNlc2FtZQ==". So, your header would be: Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

            John Scanlan added a comment - - edited

            Assuming one has a form which submits to a request type and creates an issue, my example code will download the submitted form data in XLSX format.

            Using this code, one should also be able to figure out any other form-related API calls in combination with their browser's network inspection tools should they require some other parts of this API. One can also rewrite the curl request using whatever language and http request library they choose. It's meant for anyone else who may need to test/use this feature before an official API release is provided by Atlassian. That's it, nothing more.

            John Scanlan added a comment - - edited Assuming one has a form which submits to a request type and creates an issue, my example code will download the submitted form data in XLSX format. Using this code, one should also be able to figure out any other form-related API calls in combination with their browser's network inspection tools should they require some other parts of this API. One can also rewrite the curl request using whatever language and http request library they choose. It's meant for anyone else who may need to test/use this feature before an official API release is provided by Atlassian. That's it, nothing more.

            @Derek White - Just fyi.. I tried with the below 2 url's in the "Send Web Request" automation. Both the url's are not working.

            2nd url is failing with 404 page not found error.

            https://<site>.atlassian.net/gateway/api/proforma/cloudid/<cloudid>/api/2/issues/issue.id.urlEncode/forms
            https://<Jira site>.atlassian.net/gateway/api/proforma/cloudid/<cloudID>/api/3/portal/2/issues/issue.id.urlEncode/form/1

            Manas Bagde added a comment - @Derek White - Just fyi.. I tried with the below 2 url's in the "Send Web Request" automation. Both the url's are not working. 2nd url is failing with 404 page not found error. https://<site>.atlassian.net/gateway/api/proforma/cloudid/<cloudid>/api/2/issues/ issue.id.urlEncode /forms https://<Jira site>.atlassian.net/gateway/api/proforma/cloudid/<cloudID>/api/3/portal/2/issues/ issue.id.urlEncode /form/1

            John Scanlan added a comment - - edited

            Hi,

            Thanks for adding in this solution and I look forward to its release.

            Should anyone else need code which will download form data, here's some sample code (no warranty, no support, just a nudge) which you can use as a basis with Cloud Jira. I'm sure one can poke and prod at this specific API based on the requests a Form-based issue makes to get more metadata should one need it. I do not work for Atlassian.

            Prerequisites
            1. Make sure you have an API Token for your cloud instance that has permissions to your project using ProForma/Jira forms.
            2. Make sure to get your cloud ID (it appears to be a UUID in the URL of your request) from a sample request using ProForma, this should be the same across requests from what I've observed.

            Sample Code

            #!/bin/bash
            # this code is provdied as-is, purely as an example, and comes with no warranty or support
            JIRA_CLOUD_SUBDOMAIN="your subdomain"
            CLOUD_ID="your cloud ID (get from a request on your form issue page)"
            JIRA_USERNAME="your jira login email"
            JIRA_API_TOKEN="an api token tied to your user"
            ISSUE_ID="the numerical issue id (12345), not the issue key (OPS-1), can be gotten from other api calls"
            curl -D- \
               -X GET \
               -u "${JIRA_USERNAME}:${JIRA_API_TOKEN}" \
               --output "test.xlsx" \
               "https://${JIRA_CLOUD_SUBDOMAIN}.atlassian.net/gateway/api/proforma/cloudid/${CLOUD_ID}/api/1/issues/${ISSUE_ID}/forms/1/spreadsheet"
            

             

             

            John Scanlan added a comment - - edited Hi, Thanks for adding in this solution and I look forward to its release. Should anyone else need code which will download form data, here's some sample code (no warranty, no support, just a nudge) which you can use as a basis with Cloud Jira. I'm sure one can poke and prod at this specific API based on the requests a Form-based issue makes to get more metadata should one need it. I do not work for Atlassian. Prerequisites 1. Make sure you have an API Token for your cloud instance that has permissions to your project using ProForma/Jira forms. 2. Make sure to get your cloud ID (it appears to be a UUID in the URL of your request) from a sample request using ProForma, this should be the same across requests from what I've observed. Sample Code #!/bin/bash # this code is provdied as-is, purely as an example, and comes with no warranty or support JIRA_CLOUD_SUBDOMAIN= "your subdomain" CLOUD_ID= "your cloud ID (get from a request on your form issue page)" JIRA_USERNAME= "your jira login email" JIRA_API_TOKEN= "an api token tied to your user" ISSUE_ID= "the numerical issue id (12345), not the issue key (OPS-1), can be gotten from other api calls" curl -D- \ -X GET \ -u "${JIRA_USERNAME}:${JIRA_API_TOKEN}" \ --output "test.xlsx" \ "https://${JIRA_CLOUD_SUBDOMAIN}.atlassian.net/gateway/api/proforma/cloudid/${CLOUD_ID}/api/1/issues/${ISSUE_ID}/forms/1/spreadsheet"    

            I implemented this as an Automation rule (web request action), so I have no code. The code block I pasted is a raw HTTP request, with all the info required to build the Automation rule.

            You can get your cloudId from the admin URL. E.G. Admin -> User management takes you to https://admin.atlassian.com/o/<cloudId>/users

            issue.id.urlEncode is a Smart Value. This is also noted when you create a web request automation action.

            Derek White added a comment - I implemented this as an Automation rule (web request action), so I have no code. The code block I pasted is a raw HTTP request, with all the info required to build the Automation rule. You can get your cloudId from the admin URL. E.G. Admin -> User management takes you to https://admin.atlassian.com/o/ <cloudId>/users issue.id.urlEncode is a Smart Value . This is also noted when you create a web request automation action.

              3a5d08b54945 Mauricio Franzoni (Inactive)
              gfranck Gabriele Franck
              Votes:
              529 Vote for this issue
              Watchers:
              344 Start watching this issue

                Created:
                Updated:
                Resolved: