Versions Compared

Key

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

Table of Contents

API Definition

Method

POST
URL/rest/jip-api/1.0/index/query.json

Request Headers:

  • Content-Type: application/json
  • Authorization:  Basic hash of user name and password. Example: Basic YWRtaW46YWRtaW4=

Post parameters

ParameterTypeExampleDescription
searchType

String

basic

Fixed value

listType

String

detail

Fixed value

genericKeyword

String


For advanced manual Lucene Query. Leave it null to use queryIndexSearchParams

queryIndexSearchParams
List of QueryIndexSearchParam

List of search criteria
mandatoryQueryIndexSearchParams
List of QueryIndexSearchParam

These search criteria will be "AND" with queryIndexSearchParams 
orForQueryIndexSearchParams

Boolean

true/falseDecides whether there will be "OR" or "AND" between queryIndexSearchParams.
orForMandatoryQueryIndexSearchParams

Boolean

true/falseDecides whether there will be "OR" or "AND" between mandatoryQueryIndexSearchParams.
pageNumber

Integer

1Page number of the results. Results will return as paged.
pageSize

Integer

15Size of page
sortDirection

String

asc/descasc or desc
sortField

String

asset.name

Field to sort. Use system fields or attribute names.

sortType

String

STRING
Use one of search field types.

...

TypeDescriptionExample
Asset ListThe keyword must be "name + #ID" of an asset.

"Laptop 1 #167"

Asset List by Asset TypesThe keyword must be "name + #ID" of an asset."Laptop 1 #167"
Cascading DropdownThe keyword must be text.

"1-2"

CheckboxThe keyword must be text.

"Ada"

Date PickerThe keyword must be Date(without time) in ISO format."2020-05-22"
Date Time PickerThe keyword must be Date-time(with time) in ISO format."2020-05-22T13:18"
Dropdown ListThe keyword must be text."Ada"
IPThe keyword must be text."192.168.1.1"
IPv6The keyword must be text."2607:f0d0:1002:0051:0000:0000:0000:0004"
Jira Organizations

The keyword must be text.

"1"

Jira Project

The keyword must be text.

"10000"

Jira Project Components

The keyword must be text.

"10000-1"

Jira Project Versions

The keyword must be text.

"10000-1"

Jira User PickerThe keyword must be a username."tyler-durden"
List BoxThe keyword must be text."Mer"
List Box - MultipleThe keyword must be text.

"Izm"

Number Float(with decimals)The keyword must be number float(with decimals).14.2

Number Long(without decimals)

The keyword must be number long(without decimals).98
Radio ButtonThe keyword must be text."Can"
TextThe keyword must be text."Lorem ipsum dolor sit amet, consectetur adipiscing elit."
Text AreaThe keyword must be text."Lorem ipsum dolor sit amet, consectetur adipiscing elit."
URLThe keyword must be text."https://snapbytes.com/"

...