{approval} and {trigger} macros could have conditions associated to them. Conditions can be defined as part of the macro parameters.
| Reference | Description | Compare-to values |
|---|---|---|
| user | the user is the one given | a comma-separated list of specific user names, groups, anonymous or a Value References |
| usergroup | the user belongs to the given group | a comma-separated list of specific group names or a Value References |
| haslabel | the page has a given label | a comma-separated list of specific labels |
| hasapproval | the page has a given approval | an approval name |
| permission | the user has to given permission | edit, view or administer |
| title | the title name | a page title or a Value Reference to a page title |
| isorphan | Whether or not the page has no parent page | true or false |
| ishomepage | Whether or not the page is the home page of the current space | true or false |
| ischildof | Whether or not the page is child (or grandchild) of the given page (name) | a specific value or a Value Reference |
| spece or spacekey | Whether or not the page part of the space identified by the given space key | a specific value or a Value Reference |
| Metadata reference | A reference to a metadata value. | a specific value or a Value Reference |
Negation
The compared-to value could be preceded by a '!' to negate the condition. Several conditions could be defined in a macro.
Examples
| {...|user=primus|...} | ... the user is primus |
| {...|user=@Project Team:Project Manager@|...} | ... the user is the one indicate in the metadata value name Project Manager in the page Project Team |
| {...|haslabel=!approved|...} | ... the page does not have the label approved |
| {...|usergroup=@WF:Workflow:Releasers@|...} | ... the user belongs to the group defined in the metadata value name Releasers of the page WR:Workflow |
| {...|permission=administer|...} | ... the user can administer the page |
| {...|hasapproval=!Project Management|...} | ... the page does not have the Project Management approval |
| {...|@Reviewer@=!@user@|...} | ... the page's metadata value Reviewer is not the current user |
| {...|user=!johndoe, janedoe|...} | ... the current user is neither johndoe nor janedoe |
| {...|haslabel=!cat, dog, turtle|...} | ... the page does not have any of label cat, dog or turtle |
| {...|title=Requirements|...} | ... the page's title is Requirements |
| {...|ishomepage=false|...} | ... the page is not the homepage |
| {...|isorphan=true|...} | ... the page does not have a parent page |

Comments (7)
Sep 14, 2007
James Mortimer says:
can we use user=anonymous or usergroup=anonymous or something to add a specifi...Sep 14, 2007
Roberto Dominguez says:
Not right now, but it sounds like a very good idea. I've created APRV-21 and wil...Not right now, but it sounds like a very good idea. I've created APRV-21 and will try to incorporate it soon.
Oct 01, 2007
Roberto Dominguez says:
Implemented in 1.1. Note that only applies for Trigger's conditions.Implemented in 1.1. Note that only applies for Trigger's conditions.
Apr 21, 2008
Anitha R says:
Hi Roberto, Is there a way to use full name or last name in the send-email macr...Hi Roberto,
Is there a way to use full name or last name in the send-email macro for a user?
Thanks,
Anitha
Apr 21, 2008
Roberto Dominguez says:
Sorry, it is not possible. Feel free to add a new feature request on http://deve...Sorry, it is not possible. Feel free to add a new feature request on http://developer.atlassian.com/jira/browse/APRV to consider it in forthcoming releases.
Apr 26, 2008
Matt Bovett says:
Should I file a feature request that asks for this?-- {trigger:pagecreated|isch...Should I file a feature request that asks for this?--
{trigger:pagecreated|ischild=Parent_of_Pages_I_Want_Trigger_to_Execute_On}
That means:
Execute this trigger on any pages that are children of the page "Parent_of_Pages_I_Want_Trigger_to_Execute_On"
Thoughts?
Filed it here. Feel free to close if its not doable or a good idea.
Nov 04
Mika Halttu says:
One more detail about "hasapproval"; your description does not specify if its "a...One more detail about "hasapproval"; your description does not specify if its "and" or "or", meaning if only one of labels should be found, or all of them.
"a comma-separated list of specific labels".. Is there any way to adjust that?