Skip to main content
Skip table of contents

Search

Search Approvals by Member

Path

/rest/approvalmacro/1.0/search

Method

POST

Request Body

CODE
{
  "status": string, // Approval status to search for - "pending", "approved", "rejected" or "expired" - searches for "pending" and "expired" if not provided
  "userName": string, // User to filter by - searches by your User if not provided
  "spaceKey": string, // Space to search for - searches for all spaces if not provided
}

Example:

CODE
{
  "status": "pending",
  "userName": "ff80808160e8c8810160e8d6a1210000",
  "spaceKey": "ABC"
}

Response Body

Example:

CODE
{
	"type": "macro",
	"title": "Yes",
	"spaceKey": "T1",
	"status": "pending",
	"pageId": 819206,
	"pageTitle": "avc",
	"pageVersion": 2,
	"creatorUsername": "admin",
	"updatorUsername": "admin"
	"createdOn": 1550521247694,
	"updatedOn": 1550521280029,
	"creator": "ff80808160e8c8810160e8d6a1210000",
	"creatorDisplayName": "Janet Plum",
	"creatorProfilePicture": "/confluence/download/attachments/65573/user-avatar",
	"updator": "ff80808160e8c8810160e8d6a1210000",
	"updatorDisplayName": "Janet Plum",
	"updatorProfilePicture": "/confluence/download/attachments/65573/user-avatar",
	"members": [  
		{
			"approvalId": 2,
			"userKey": "ff80808160e8c8810160e8d6a1210000",
			"status": "pending",
			"date": 1550521280031,
			"avatarUrl": "/confluence/download/attachments/65573/user-avatar",
			"displayName": "Janet Plum",
			"username": "admin"
		}
	]
}


Search Approvals by Creator/Updater

Path

/rest/approvalmacro/1.0/search/meta

Method

POST

Request Body

CODE
{
  "status": string, // Approval status to search for - "pending", "approved", "rejected" or "expired" - searches for "pending" and "expired" if not provided
  "userName": string, // User to filter by - searches by your User if not provided
  "spaceKey": string, // Space to search for - searches for all spaces if not provided
}

Example:

CODE
{
  "status": "pending",
  "userName": "ff80808160e8c8810160e8d6a1210000",
  "spaceKey": "ABC"
}

Response Body

Example:

CODE
{
	"type": "macro",
	"title": "Yes",
	"spaceKey": "T1",
	"status": "pending",
	"pageId": 819206,
	"pageTitle": "avc",
	"pageVersion": 2,
	"creatorUsername": "admin",
	"updatorUsername": "admin"
	"createdOn": 1550521247694,
	"updatedOn": 1550521280029,
	"creator": "ff80808160e8c8810160e8d6a1210000",
	"creatorDisplayName": "Janet Plum",
	"creatorProfilePicture": "/confluence/download/attachments/65573/user-avatar",
	"updator": "ff80808160e8c8810160e8d6a1210000",
	"updatorDisplayName": "Janet Plum",
	"updatorProfilePicture": "/confluence/download/attachments/65573/user-avatar",
	"members": [  
		{
			"approvalId": 2,
			"userKey": "ff80808160e8c8810160e8d6a1210000",
			"status": "pending",
			"date": 1550521280031,
			"avatarUrl": "/confluence/download/attachments/65573/user-avatar",
			"displayName": "Janet Plum",
			"username": "admin"
		}
	]
}


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.