Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

AVAILABLE SINCE 6.1.0

You need administrator rights in Jira to perform the tasks on this page.

To improve readability, all JSON results will be beautified whereas the actual results will not.

This API lets you configure the global app parameters.

Request URI

The base request URI for all APIs on this page is as follows:

{JIRA Instance}/rest/com.okapya.jira.checklist/latest/configuration

APIs

Get the parameters

GET

Description

Example

Response

Returns the full JSON array representation of the app parameters.

{
  "historyDateFormat": "yyyy-MM-dd HH:mm Z",
  "allowProjectAdminsToConfigure": false
}

Get the parameter examples

GET [...]/examples

You can query to get examples of values calculated from the current parameters and possible errors caused by the parameter values.

Description

Example

Request

You can optionally pass query parameters with alternate values to find out what the results would be, without having to save the new values right away.

[...]/examples?historyDateFormat=YYYY

Response

Returns the full JSON array representation of the app parameter examples.

{
    "fieldsInError": [],
    "historyDateFormat": "2022"
}

Update the parameters

PUT

 

Description

Example

Request

A JSON representation of the fields to update, including their values.

To keep updating simple, you only have to list the fields and values you want to update.

{"historyDateFormat":"YYYY"}

or

{"allowProjectAdminsToConfigure":true}

 

Response

Returns the full JSON representation of the updated parameters.

The fieldsInError field indicates what fields have a bad configuration.

{
  "historyDateFormat": "yyyy-MM-dd HH:mm Z",
  "allowProjectAdminsToConfigure": false
}
// If requested with a bad date format
// [...]/examples?historyDateFormat=abcdef
{
   "fieldsInError":[
      "historyDateFormat"
   ]
}

Exceptions

For the list of potential exceptions, see https://okapya.atlassian.net/wiki/spaces/CHKDOC5/pages/2940666327/Exceptions+for+configuration+REST+APIs#App-parameter-exceptions.


SERVER DOCUMENTATION (On Cloud? Go here.)
Have questions? Contact our Service Desk for help anytime.
  • No labels