Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Get checklists GET /rest/railsware/1.0/checklist

Retrieve Retrieves an existing list of checklists for the given issue key

...

Deletes all checklist items for the given checklist

Expand
titleExpand

Path parameters

  • checklistId: number (required)

Responses

  • Status
    colourGreen
    titleSTATUS 200
    application/json returns empty checklist in JSON format

  • Status
    colourRed
    titlestatus 404
    Returned if the requested checklist is not found

Create/Update checklist from string PUT /rest/railsware/1.0/checklist/{checklistId}/item

...

Returns a paginated list of templates available in Jira

Expand
titleExpand

Query parameters

  • page: number (default 1)

  • reversed: boolean - specifies ASC or DESC order of templates

  • query: string - specifies the filter by template name

  • orderBy: string - specifies the order column of templates. Valid values are name, enabled, issueTypes and projects

Responses

  • Status
    colourGreen
    titleSTATUS 200
    application/json returns a list of templates in JSON format

    Example:

Code Block
languagejson

{
   "totalPages": 1,
   "templates": [
       {
           "id": 2,
           "name": "For manual",
           "value": "- uno\n- duo\n- tres\n",
           "enabled": true,
           "defaultContext": {
               "type": 0,
               "values": []
           },
           "scope": {
               "type": 1,
               "values": [
                   {
                       "value": "10000",
                       "label": "Test 1",
                       "iconUrl": "http://localhost:2990/jira/secure/projectavatar?size=xsmall&avatarId=10324",
                       "link": ""
                   },
                   {
                       "value": "10001",
                       "label": "Second Project",
                       "iconUrl": "http://localhost:2990/jira/secure/projectavatar?size=xsmall&avatarId=10324",
                       "link": ""
                   }
               ]
           },
           "conditions": [],
           "trigger": {
               "type": 3,
               "preventDuplicates": false
           },
           "usageCount": 0,
           "modificationType": "APPEND"
       },
       {
           "id": 3,
           "name": "Release",
           "value": "# Release instuctions\n## Preparation\n+ Add feature permissions\n+ Send `internal` announcement\n~ Prepare branch\n> * merge feature to master\n> * set tag\n> * update changlog.com\n## Deploy\n- Deploy master to prod\nx Deploy new login page\n- Test and confirm successful deployment\n- Send `external` announcement to customers\n",
           "enabled": true,
           "defaultContext": {
               "type": 2,
               "values": [
                   {
                       "value": "10000",
                       "label": "Task",
                       "iconUrl": "http://localhost:2990/jira/secure/viewavatar?size=xsmall&avatarId=10318&avatarType=issuetype"
                   }
               ]
           },
           "scope": {
               "type": 0,
               "values": []
           },
           "conditions": [
               {
                   "field": {
                       "id": "issuetype",
                       "type": "MULTI_SELECT",
                       "suggestionFieldId": "issuetype"
                   },
                   "option": "IS_ONE_OF",
                   "values": [
                       "10000"
                   ]
               },
               {
                   "field": {
                       "id": "priority",
                       "type": "PRIORITY",
                       "suggestionFieldId": "priority"
                   },
                   "option": "GREATER_THAN",
                   "values": [
                       "2"
                   ]
               }
           ],
           "trigger": {
               "type": 2,
               "to": [
                   "6",
                   "10001",
                   "5"
               ],
               "preventDuplicates": false
           },
           "usageCount": 0,
           "modificationType": "APPEND"
       },
       {
           "id": 1,
           "name": "Test",
           "value": "- item 1\n- item 2\n- item 3\n",
           "enabled": false,
           "defaultContext": {
               "type": 1,
               "values": []
           },
           "scope": {
               "type": 2,
               "values": [
                   {
                       "value": "10000",
                       "label": "Test 1",
                       "iconUrl": "http://localhost:2990/jira/secure/projectavatar?size=xsmall&avatarId=10324",
                       "link": ""
                   }
               ]
           },
           "conditions": [
               {
                   "field": {
                       "id": "summary",
                       "type": "SINGLE_LINE_TEXT",
                       "suggestionFieldId": "summary"
                   },
                   "option": "CONTAINS",
                   "values": [
                       "urgent"
                   ]
               },
               {
                   "field": {
                       "id": "issuetype",
                       "type": "MULTI_SELECT",
                       "suggestionFieldId": "issuetype"
                   },
                   "option": "ALL",
                   "values": []
               }
           ],
           "trigger": {
               "type": 0,
               "preventDuplicates": false
           },
           "usageCount": 0,
           "modificationType": "APPEND"
       }
   ]
}
  • Status
    colourRed
    titlestatus 400
    Returned if the request parameters are invalid

Get project templates GET /rest/railsware/1.0/template/project/{projectId}

...

Returns a supported list of fields with types for template condition section

Expand
titleExpand

Supported options per field types are:

  • MULTI_SELECT - EQUALS, DOES_NOT_EQUAL, IS_ONE_OF, IS_NOT_ONE_OF

  • SINGLE_SELECT - EQUALS, CONTAINS_ANY_OF, CONTAINS_ALL_OF, CONTAINS_NONE_OF

  • USER - EQUALS, DOES_NOT_EQUAL, IS_ONE_OF, IS_NOT_ONE_OF

  • SINGLE_LINE_TEXT - EQUALS, DOES_NOT_EQUAL, STARTS_WITH, ENDS_WITH, CONTAINS, DOES_NOT_CONTAIN

  • MULTI_LINE_TEXT - EQUALS, DOES_NOT_EQUAL, STARTS_WITH, ENDS_WITH, CONTAINS, DOES_NOT_CONTAIN

  • NUMBER - EQUALS, DOES_NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO

  • PRIORITY - EQUALS, DOES_NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, IS_ONE_OF, IS_NOT_ONE_OF

  • RESOLUTION - EQUALS, DOES_NOT_EQUAL, IS_ONE_OF, IS_NOT_ONE_OF, IS_RESOLVED, IS_UNRESOLVED

  • REQUEST_TYPE - EQUALS, DOES_NOT_EQUAL, IS_ONE_OF, IS_NOT_ONE_OF

Also, if a field has property “canBeEmpty” equal to ‘true’, a list of options will extend with two additional values - IS_EMPTY and IS_NOT_EMPTY

Responses

  • Status
    colourGreen
    titlestatus 200
    application/json returns a list of fields in JSON format
    Example:

    Code Block
    [
       {
           "id": "summary",
           "type": "SINGLE_LINE_TEXT",
           "name": "Summary",
           "canBeEmpty": true,
           "suggestionFieldId": "summary"
       },
       {
           "id": "issuetype",
           "type": "MULTI_SELECT",
           "name": "Issue Type",
           "canBeEmpty": false,
           "suggestionFieldId": "issuetype"
       },
       {
           "id": "status",
           "type": "MULTI_SELECT",
           "name": "Status",
           "canBeEmpty": false,
           "suggestionFieldId": "status"
       },
       {
           "id": "priority",
           "type": "PRIORITY",
           "name": "Priority",
           "canBeEmpty": false,
           "suggestionFieldId": "priority"
       },
       {
           "id": "resolution",
           "type": "RESOLUTION",
           "name": "Resolution",
           "canBeEmpty": false,
           "suggestionFieldId": "resolution"
       },
       {
           "id": "assignee",
           "type": "USER",
           "name": "Assignee",
           "canBeEmpty": true,
           "suggestionFieldId": "assignee"
       },
       {
           "id": "reporter",
           "type": "USER",
           "name": "Reporter",
           "canBeEmpty": true,
           "suggestionFieldId": "reporter"
       },
       {
           "id": "creator",
           "type": "USER",
           "name": "Creator",
           "canBeEmpty": true,
           "suggestionFieldId": "creator"
       },
       {
           "id": "affectedVersion",
           "type": "MULTI_SELECT",
           "name": "Affects Version/s",
           "canBeEmpty": true,
           "suggestionFieldId": "affectedVersion"
       },
       {
           "id": "fixVersion",
           "type": "MULTI_SELECT",
           "name": "Fix Version/s",
           "canBeEmpty": true,
           "suggestionFieldId": "fixVersion"
       },
       {
           "id": "component",
           "type": "MULTI_SELECT",
           "name": "Component/s",
           "canBeEmpty": true,
           "suggestionFieldId": "component"
       },
       {
           "id": "environment",
           "type": "MULTI_LINE_TEXT",
           "name": "Environment",
           "canBeEmpty": true,
           "suggestionFieldId": "environment"
       },
       {
           "id": "description",
           "type": "MULTI_LINE_TEXT",
           "name": "Description",
           "canBeEmpty": true,
           "suggestionFieldId": "description"
       },
       {
           "id": "labels",
           "type": "MULTI_SELECT",
           "name": "Labels",
           "canBeEmpty": true,
           "suggestionFieldId": "labels"
       },
       {
           "id": "customfield_10001",
           "type": "MULTI_LINE_TEXT",
           "name": "Checklists",
           "canBeEmpty": true,
           "suggestionFieldId": "cf[10001]"
       },
       {
           "id": "customfield_10002",
           "type": "SINGLE_LINE_TEXT",
           "name": "Smart Checklist Progress",
           "canBeEmpty": true,
           "suggestionFieldId": "cf[10002]"
       }
    ]

...

Expand
titleExpand


Path parameters

  • id: number (required)

Body parameters (application/json)

  • projectId: number (optional) - specifies a project ID

  • name: string (required) - specifies a template name

  • value: string - specifies checklist value in string format

  • enabled: boolean (true by default)

  • scope: object (required) - specifies a scope of projects to be displayed on
    type: number - (0 - All projects, 1 - Multiple projects, 2 - Single project)
    values: array of project ids

  • trigger: object - specifies a trigger for automatically template applying
    type: number - (0 - Issue created, 1 - Issue updated, 2 - Issue transitioned, 3 - none)
    from: array of status ids - available only for Issue transitioned trigger type
    to: array of status ids - available only for Issue transitioned trigger type
    preventDuplicates: boolean

  • conditions: array of objects - specifies a list of conditions that have to be checked before applying a template
    field: object
    type: string (required)
    id: string (required)
    option: string
    values: array of strings

Responses

  • Status
    colourGreen
    titlestatus 200
    application/json returns the created template in JSON format

  • Status
    colourRed
    titlestatus 400
    returned if the request parameters are invalid

...

Apply template to the issue POST /rest/railsware/1.0/checklist{checklistId}/template/{

...

templateId}

Deletes template by idApply template to the issue

Expand
titleExpand

Path parameters

  • idchecklistId: number (required)

Query parameters
  • templateId:

  • page: number (required)

Responses

  • Status
    colourGreen
    titlestatus 200
    application/json Returns list of existing templates in JSON format

  • Status
    colourRed
    titlestatus 404
    status 404 - returned if the requested template is not found

...

Delete template DELETE /rest/railsware/1.0/template/{id}

Deletes template by id

Expand
titleExpand

Path parameters

  • id: number (required)

Query parameters:

  • page: number

  • projectId: number (optional) - specifies project ID

Responses

  • Status
    colourGreen
    titlestatus 200
    application/json Returns list of existing templates in JSON format

  • Status
    colourRed
    titlestatus 404
    status 404 - returned if the requested template is not found

Status
colourBlue
titleNew
Get Smart Checklist history GET /rest/railsware/1.0/history - available from v6.5.0

Retrieves an existing list of changes/updates done to the checklist for the given issue key

Expand
titleExpand

Query parameters:

  • issueKey: string (required)

Responses

  • Status
    colourGreen
    titlestatus 200
    application/json Returns list of all history events for the checklist associated with the provided issue key in JSON format

Status
colourBlue
titleNew
Run migration POST /rest/railsware/1.0/migration

Start the storage migration or migration from other apps (My ToDo, Elements Checklist)

Expand
titleExpand

Query parameters:

  • migrationOption: string

    • possible values: OVERRIDE, APPEND, ADD-IF-EMPTY

  • migrationType: string

    • possible values: STORAGE, ELEMENTS, MY_TO_DO

  • projectIds: array of project IDs

Example

Code Block
languagejson
{
    "migrationOption": "OVERRIDE",
    "migrationType": "ELEMENTS",
    "projectIds": [11001, 10900]
}

Responses

  • Status
    colourGreen
    titlestatus 200
    application/json Returns list of existing templates in JSON format

  • Status
    colourRed
    titlestatus 400
    status 400 - returned if values for query parameters are not correct

Note

REST API endpoints will not be accessible for all the users with the introduced custom permissions in the Smart Checklist v6.4.1.

Resources based on permissions

REST API endpoints with Jira Standard permission

Jira Standard Permission (Role)

REST API Resources

Description

Browse Projects

Edit Issues

Administer Projects

Site Admin

GET /rest/railsware/1.0/checklist

Get checklist

(tick)

(tick)

(tick)

(tick)

GET /rest/railsware/1.0/history

Get Smart Checklist history

(tick)

(tick)

(tick)

(tick)

PUT /rest/railsware/1.0/checklist/{checklistId}

Update checklist

(tick)

DELETE /rest/railsware/1.0/checklist/{checklistId}

Delete checklist items

(tick)

PUT /rest/railsware/1.0/checklist/{checklistId}/item

Create/Update checklist from string

(tick)

GET /rest/railsware/1.0/template/global

Get template list

(tick)

GET rest/railsware/1.0/template/project/{{projectId}}?reversed=false&page=1&global=true

Get global templates

(tick)

(tick)

(tick)

GET /rest/railsware/1.0/template/project/{projectId}?reversed=false&page=1&global=false

Get project templates

(tick)

(tick)

(tick)

GET /rest/railsware/1.0/template/{templateId}

Get template by ID

(tick)

GET /rest/railsware/1.0/template/fields

Get template fields

(tick)

POST /rest/railsware/1.0/template

Create template

(warning) only with "scope":{"type":2,"values":["projectId"] in request

(tick)

DELETE /rest/railsware/1.0/template/{id}

Delete template

(warning) only if add ?projectId={id} to the endpoint

(tick)

PUT rest/railsware/1.0/template/{Id}

Update template

(warning) only with "projectId" in request body

(tick)

REST API endpoints with Custom permissions to View and Work with Smart Checklist

Tip

You can set up Custom Permissions to View and Work with Smart Checklist starting from Smart Checklist v6.4.1.

Custom Smart Checklist permission

Jira permission

REST API Resources

Description

View Smart Checklist

Add Smart Checklist Items

Set status of Smart Checklist Items

Delete Smart Checklist Items

Manage Smart Checklist Items

Manage Smart Checklist Templates

Project Admin

Site Admin

GET /rest/railsware/1.0/checklist

Get checklist

(tick)

(tick)

(tick)

(tick)

(tick)

(tick)

(tick)

(tick)

GET /rest/railsware/1.0/history

Get Smart Checklist history

(tick)

(tick)

(tick)

(tick)

(tick)

(tick)

(tick)

(tick)

PUT /rest/railsware/1.0/checklist/{checklistId}

Update checklist

(warning) only change status of checklist items

(tick)

DELETE /rest/railsware/1.0/checklist/{checklistId}

Delete checklist items

(tick)

(tick)

PUT /rest/railsware/1.0/checklist/{checklistId}/item

Create/Update checklist from string

(warning) only add new items with "isReplace": false in request

(tick)

GET /rest/railsware/1.0/template/global

Get template list

(tick)

GET rest/railsware/1.0/template/project/{{projectId}}?reversed=false&page=1&global=true

Get global templates

(tick)

(tick)

(tick)

(tick)

(tick)

GET /rest/railsware/1.0/template/project/{projectId}?reversed=false&page=1&global=false

Get project templates

(tick)

(tick)

(tick)

(tick)

(tick)

GET /rest/railsware/1.0/template/{templateId}

Get template by ID

(tick)

GET /rest/railsware/1.0/template/fields

Get template fields

(tick)

POST /rest/railsware/1.0/template

Create template

(warning) only with "scope":{"type":2,"values":["projectId"] in request

(warning) only with "scope":{"type":2,"values":["projectId"] in request

(tick)

DELETE /rest/railsware/1.0/template/{id}

Delete template

(warning) only if add ?projectId={id} to the endpoint

(warning) only if add ?projectId={id} to the endpoint

(tick)

PUT rest/railsware/1.0/template/{Id}

Update template

(warning) only with "projectId" in request body

(warning) only with "projectId" in request body

(tick)

Insert excerpt
Get Started
Get Started
namesupport-email (checklist-server)
nopaneltrue