v1.1.0 API documentation
ProForma 開発者向けドキュメント
このページの内容
関連コンテンツ
- 関連コンテンツがありません
ProForma provides an API to make it easier for our customers to access their data. This version 1.2 the API includes the Export API and a number of new form related features in the Form API. We plan to add more features to the Form API in future versions.
Refer to ProForma API Documentation for general information about the use of this API.
可用性
The API is available in Jira Server and Jira Data Center.
The ProForma Customer API is available in the following versions of ProForma:
ProForma Customer API | ProForma version |
---|---|
v8.4.9 and later | |
v1.1.0 THIS VERSION | v8.4.0 and later |
v1.0.0 | v8.2.0 and later |
ProForma Customer API V1.1.0 OAS3
Export API
The export APIs provide a way to export all data from ProForma forms.
POST Start export | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/rest/proforma/1/export
Starts an export of ProForma data. Exports are performed as a background process so this API call does not immediately return the result, instead ProForma returns an export ID which you can use to check the status and download the export later. Exporting can be either a quick or a slow process depending on how big your Jira instance is. Expect an export to take a few seconds if your project has a few hundred issues, or take a few minutes if your project has a few thousand issues. Currently ProForma supports two exports: - パラメーターNo parameters Request body
The body of this POST request describes what will be exported. All form responses in the specified project that match the template form ID you specify will be exported. 値の例
スキーマ
レスポンス
Extensions
|
GET Check status of export | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/rest/proforma/1/export/{exportId}
Checks the status of an export: whether it has completed successfully or failed, and how much progress has been made if not complete. The URL of this API will be provided to you when you start an export using the "Start export" API above. You can poll the URL returned in the パラメーター
レスポンス
Extensions
|
GET Download export | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/rest/proforma/1/export/{exportId}/{filename}
Downloads the export file once it has completed processing. The URL of this API will be provided to you by calling the "Check status of export" API above. Don't call this API until the URL has been provided by the status check; this API will return an error if called before the export has finished processing. The file can only be downloaded once per export. Once you request the download from this URL the file will be deleted on the server to save resources. You will need to start another export if you wish to retrieve it again. パラメーター
レスポンス
Extensions
|
Form API
The form APIs provide a way to interact with forms on an issue.
POST Add form to issue | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/rest/proforma/1/issue/{issueKey}/form
Adds a form to an issue. The ID of the template form to add is provided in the body of the request, optionally along with the number of copies to add and whether to make it available externally (on the Jira Service Desk portal). ProForma will only add the form if the user calling the API has permission to edit that issue. This API does not check if the form already exists on the issue; if the form already exists on the issue that form will be added again without affecting the existing form. Multiple copies of the same form can be added by using the パラメーター
Request body
The body of this POST request describes the form to add to an issue. 値の例
スキーマ
レスポンス
Extensions
|
POST Copy a form from one issue to another | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/rest/proforma/1/issue/{issueKey}/form/{formId}/copy/{toIssueKey}
Copy a form from one issue to another パラメーター
Request body
値の例
スキーマ
レスポンス
Extensions
|
POST Submit a form | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/rest/proforma/1/issue/{issueKey}/form/{formId}/submit
Change the status of a form attached to an issue to submitted パラメーター
レスポンス
Extensions
|
POST Reopen a form | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/rest/proforma/1/issue/{issueKey}/form/{formId}/reopen
Change the status of a submitted form to open パラメーター
レスポンス
Extensions
|
POST Unlock a form | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/rest/proforma/1/issue/{issueKey}/form/{formId}/unlock
Change the status of a locked form to unlocked, so it can then be reopened. パラメーター
レスポンス
Extensions
|
GET Download a PDF of a form | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/rest/proforma/1/issue/{issueKey}/form/{formId}/pdf
Download a PDF of a form. A rich PDF is downloaded by default, or you can download a plain PDF by indicating with a query param. パラメーター
レスポンス
Extensions
|
POST Change the visibility for an issue form | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/rest/proforma/1/issue/{issueKey}/form/{formId}/visibility/{visibility}
Change the visibility for an issue form. NB: The form can only have its visibility set to パラメーター
レスポンス
Extensions
|
Schemas
AddFormRequest { | |
---|---|
templateFormId* | number($int64) example: 1 The ID of the template form to add to this issue. To find the ID of a template form, open the form in the ProForma form builder. The URL of that page will end in |
visibility | number($int64) example: 2 A number specifying the number of times to add this form. One form will be added if no value is specified.
Array [ 2 ]
[ internal, external ] |
add | number($int64) example: 2 A number specifying the number of times to add this form. One form will be added if no value is specified. |
} |
ExportRequest { | |
---|---|
type* | string example: responses-xlsx The type of export. Currently |
projectKey* | string example: ABC A string containing the project key to export data from. Only one project can be specified; multiple projects require multiple exports. |
templateFormId* | number example: 1 The ID of the template form to export data from. To find the ID of a template form, open the form in the ProForma form builder. The URL of that page will end in |
フィールド | [string] example: List [ "summary", "priority", "customfield_10012" ] |
jql | string example: (description ~ broken OR description ~ 'not working') AND created >= 2020-08-20 An optional string containing a JQL query. The export will be limited to include only issues that match this JQL query. NB: Including the project in the JQL (e.g. project = MyServiceDesk) is not required since ProForma will automatically include it. |
} |
ExportStartResponse { | |
---|---|
type* | string example: responses-xlsx A string identifying the export type. |
id* | string example: responses-xlsx-ABC-1-1234567890 A string identifying the export task. Each export is given this unique ID to allow it to be retrieved later. |
statusURL* | string example: https://jira.example.com/jira/rest/proforma/1/export/responses-xlsx-ABC-1-1234567890 The URL of the check status API which you can call to check the progress of this export. |
} |
ExportStatusResponse { | |
---|---|
type* | string example: responses-xlsx A string identifying the type of export. The only possible values in this version of the API are: - |
id* | string example: responses-xlsx-ABC-1-1234567890 A string identifying the export task. Each export is given this unique ID to allow it to be retrieved later. |
complete* | boolean example: true Indicates whether the export has completed successfully. This will initially be |
failed* | boolean example: false Indicates whether the export has failed. If this is |
progress* | number example: 25 The estimated percentage complete of this export, expressed as an integer from 0 to 100. |
downloadURL | string example: https://jira.example.com/jira/rest/proforma/1/export/responses-xlsx-ABC-1-1234567890/ProForma-ABC-form-1.xlsx The URL where this export can be downloaded. This |
message | string example: Error constructing JQL query A text-based message providing more information about the status (whether completed or failed) of the export. |
} |
CustomerApiError { | |
---|---|
A general error type. More specific errors extend this type with additional information. | |
error* | 文字列 The type of error that occurred |
message | 文字列 A more user-friendly description of the error in English, if available. |
} |
ClientApiError { | |
---|---|
A general error type. More specific errors extend this type with additional information. | |
error* | |
message | 文字列 A more user-friendly description of the error in English, if available. |
} |
ForbiddenApiError { | |
---|---|
A general error type. More specific errors extend this type with additional information. | |
error* | |
message | 文字列 A more user-friendly description of the error in English, if available. |
} |
NotFoundApiError { | |
---|---|
A general error type. More specific errors extend this type with additional information. | |
error* | |
message | 文字列 A more user-friendly description of the error in English, if available. |
} |
ServerApiError { | |
---|---|
A general error type. More specific errors extend this type with additional information. | |
error* | |
message | 文字列 A more user-friendly description of the error in English, if available. |
} |
InvalidJsonApiError { | |
---|---|
Error response specific to request JSON parsing errors. It may include further details on the cause of the parsing error. | |
error* | |
message | 文字列 A more user-friendly description of the error in English, if available. |
} |
FormStatus string
The status of a form, which can be
- o - for forms which are open
- s - for forms which have been submitted
- l - for forms which have been locked
Enum:
[ o, s, l ]
CopyFormRequest { | |
---|---|
ステータス | FormStatusCustomer string The status of a form, which can be
Enum:
Array [ 3 ]
[ open, submitted, locked ] |
visibility | FormVisibility string The visibility of the form, which is only applicable for Service Desk projects.
Enum:
Array [ 2 ]
[ internal, external ] |
} |
FormStatusCustomer string
The status of a form, which can be
- open - for forms which are open
- submitted - for forms which have been submitted
- locked - for forms which have been locked
Enum:
[ open, submitted, locked ]
FormVisibility string
The visibility of the form, which is only applicable for Service Desk projects.
- internal - for forms which are set to Internal and only accessible via the Agent view
- external - for forms which are set to External and accessible via the Portal
Enum:
[ internal, external ]
FormStateChangeResult { | |
---|---|
The status and visibility of an issue form, as well as a flag indicating if the issue was transitioned to a new status (due to ProForma automation rules) as a result of the change. | |
status | FormStatus string The status of a form, which can be
Enum:
ここをクリックして展開...
[ o, s, l ] |
transitioned | ブーリアン |
} |
VisibilityChangeResult { | |
---|---|
The visibility of the issue form. | |
visibility | FormVisibility string The visibility of the form, which is only applicable for Service Desk projects.
Enum:
Array [ 1 ]
[ internal, external ] |
} |
関連コンテンツ
- 関連コンテンツがありません