Approval Data Type

State Approvals

Properties
name data type description
name string Approval Name
weight number Numeric value that sets in which order the approvals appear in the state (lightest weight first)
label string Labels that must be present in the page/blog post to make the approval appear
credentials string

Credentials required to approve/reject the approval (if none required, not shown).

"password" or "userid+password".

approvers Approvers List of automatically assigned approval reviewers when the state is initialized
conditions array of Condition Approval conditions list

Example

{
  "name" : "Approval 1",
  "weight" : 10,
  "label" : "label1",
  "credentials" : "password",
  "approvers" : {
    "users" : "user1,user2,user3",
    "groups" : "confluence-users,confluence-administrators",
    "minimum" : "*"
  },
  "conditions" : [ {
    "permission" : [ "edit", "view" ],
    "clause" : "...",
    "type" : "..."
  }, {
    "names" : [ "Editor in Chief", "Reviewer" ],
    "value" : "...",
    "clause" : "...",
    "type" : "..."
  }, {
    "states" : [ "state_1", "state_2" ],
    "clause" : "...",
    "type" : "..."
  }, {
    "spaceKey" : "SP1",
    "clause" : "...",
    "type" : "..."
  }, {
    "page" : "Page 1",
    "clause" : "...",
    "type" : "..."
  }, {
    "users" : "user_1,user_2,user_3",
    "clause" : "...",
    "type" : "..."
  }, {
    "groups" : "group_1,group_2,group_3",
    "clause" : "...",
    "type" : "..."
  }, {
    "users" : "user_1,user_2,user_3",
    "clause" : "...",
    "type" : "..."
  }, {
    "groups" : "group_1,group_2,group_3",
    "clause" : "...",
    "type" : "..."
  }, {
    "excludedUsers" : "user_1,user_2,user_3",
    "clause" : "...",
    "type" : "..."
  }, {
    "approval" : "Review Approval",
    "current" : true,
    "clause" : "...",
    "type" : "..."
  }, {
    "labels" : [ "label_1", "label_2" ],
    "clause" : "...",
    "type" : "..."
  } ]
}