Page tree

Versions Compared

Key

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

/rest/msjiraactivity/1.0/dailystatistics?startAt=#

Get the daily statistics for the most recent day stored. If “?startAt=#” is included, it will instead get the data from ‘#’ days back.

Errors:

404: No daily statistics exist for this query.

Example:

Query: 

Code Block
/rest/msjiraactivity/1.0/dailystatistics?startAt=0


Response: 

Code Block
{
	"next":"https://jdev.isos.tech/rest/msjiraactivity/1.0/dailystatistics?startAt=50",
    "total": 26,
    "results": [
        {
            "date": "07-31-2019",
            "issueCount": 6,
            "projectCount": 1,
            "customFieldCount": 0,
            "workflowCount": 2,
            "commentCount": 1,
            "attachmentCount": 15,
            "issueTypeCount": 2,
            "resolutionCount": 3,
            "statusCount": 3,
            "coreLicensedUsersCount": 1,
            "softwareLicensedUsersCount": -1,
            "serviceDeskLicensedUsersCount": -1,
            "systemAdminCount": 1,
            "adminCount": 1
        },
		...
    ]
}



/rest/msjiraactivity/1.0/dailystatistics/firstlast

Get the date of the first daily statistics that are stored and the date of the last daily statistics stored.

Errors:

None.

Example:

Query: 

Code Block
/rest/msjiraactivity/1.0/dailystatistics/firstlast


Response: 

Code Block
{
    "first": "07-31-2019",
    "last": "08-27-2019"
}



/rest/msjiraactivity/1.0/dailystatistics/mm-dd-yyyy

Get the daily statistics for a specific date.

Errors:

400: Invalid date. Make sure the format is mm-dd-yyyy.

404: No daily statistics exist for this query.

Example:

Query: 

Code Block
/rest/msjiraactivity/1.0/dailystatistics/08-27-2019


Response: 

Code Block
{
    "date": "08-27-2019",
    "issueCount": 6,
    "projectCount": 1,
    "customFieldCount": 0,
    "workflowCount": 2,
    "commentCount": 1,
    "attachmentCount": 15,
    "issueTypeCount": 2,
    "resolutionCount": 3,
    "statusCount": 3,
    "coreLicensedUsersCount": 1,
    "softwareLicensedUsersCount": -1,
    "serviceDeskLicensedUsersCount": -1,
    "systemAdminCount": 1,
    "adminCount": 1
}



/rest/msjiraactivity/1.0/dailystatistics/compare?start=mm-dd-yyyy&end=mm-dd-yyyy

Get the difference in each statistic for the daily statistics data stored under ‘start’ and ‘end’.

Errors:

400: ‘end’ cannot be before ‘start’

400: Use the parameters as follows: /compare?start=mm-dd-yyyy&end=mm-dd-yyyy

404: No Daily Statistics found in range

Example:

Query: 

Code Block
/rest/msjiraactivity/1.0/dailystatistics/compare?start=08-20-2019&end=08-27-2019


Response: 

Code Block
{
    "date": "'08-20-2019' -> '08-27-2019'",
    "issueCount": 0,
    "projectCount": 0,
    "customFieldCount": 0,
    "workflowCount": 0,
    "commentCount": 0,
    "attachmentCount": 0,
    "issueTypeCount": 0,
    "resolutionCount": 0,
    "statusCount": 0,
    "coreLicensedUsersCount": 0,
    "softwareLicensedUsersCount": 0,
    "serviceDeskLicensedUsersCount": 0,
    "systemAdminCount": 0,
    "adminCount": 0
}



/rest/msjiraactivity/1.0/dailystatistics/range?start=mm-dd-yyyy&end=mm-dd-yyyy&startAt=#

Get all daily statistics in between ‘start’ and ‘end’ dates.

Errors:

400: ‘end’ cannot be before ‘start’

400: Use the parameters as follows: /compare?start=mm-dd-yyyy&end=mm-dd-yyyy

Example:

Query: 

Code Block
/rest/msjiraactivity/1.0/dailystatistics/range?start=06-20-2019&end=08-27-2019


Response: 

Code Block
{
	"next": "https://jdev.isos.tech/rest/msjiraactivity/1.0/dailystatistics/range?start=06-20-2019&end=08-27-2019&startAt=50"
    "total": 26,
    "results": [
        {
            "date": "06-20-2019",
            "issueCount": 6,
            "projectCount": 1,
            "customFieldCount": 0,
            "workflowCount": 2,
            "commentCount": 1,
            "attachmentCount": 15,
            "issueTypeCount": 2,
            "resolutionCount": 3,
            "statusCount": 3,
            "coreLicensedUsersCount": 1,
            "softwareLicensedUsersCount": -1,
            "serviceDeskLicensedUsersCount": -1,
            "systemAdminCount": 1,
            "adminCount": 1
        },
        ...
    ]
}