...
The action tag is used to define the action and its preconditions.
Code Block |
---|
| xml |
---|
| xml |
---|
title | "Sample action" | xml |
---|
|
<action>
<name>Resolve As</name>
<condition>Open</condition>
<!-- Or, instead of condition tag: <filter>status in (UNCONFIRMED NEW ASSIGNED REOPENED)</filter> -->
<set>
<!-- action script -->
</set>
</action>
|
...
Bugs must meet specific conditions to be eligible for the action. These conditions are defined outside or inside the
action tags using the
condition tag and then used in the
action element.
Code Block |
---|
| xml |
---|
| xml |
---|
title | "Sample condition" | xml |
---|
|
<condition>
<name>Open</name>
<filter>status in (UNCONFIRMED NEW ASSIGNED REOPENED)</filter>
</condition>
|
...
The value tag assigns the specified value to the field defined in the name tag.
Code Block |
---|
| xml |
---|
| xml |
---|
title | "Sample modification" | xml |
---|
|
<attribute>
<name>status</name>
<value>RESOLVED</value>
</attribute>
|
...
Anchor |
---|
| askAddTextElement |
---|
| askAddTextElement |
---|
|
The tag adds a text value and is shown as the text box in the Action window.
Code Block |
---|
| xml |
---|
| xml |
---|
title | "Add comment" | xml |
---|
|
<attribute>
<name>comments</name>
<askAddTextElement>$(bz.form.label.comment!mnemonic=o):</askAddTextElement>
<checkbox>$(bz.form.label.privateComment!mnemonic=p)</checkbox>
</attribute>
|
...
This tag prompts a user to select a single enumeration value. It is shown in the Action window as a combo box populated with the possible field values with the editing option disabled.
Code Block |
---|
| xml |
---|
| xml |
---|
title | "Sample combobox" | xml |
---|
|
<attribute>
<name>resolution</name>
<askReference>$(bz.field.Resolution!mnemonic=r):</askReference>
<exclude>N/A</exclude>
<exclude>DUPLICATE</exclude>
</attribute>
|
...
This tag prompts a user to change the value of the text field when the action is performed by specifying the new value in the text box.
Code Block |
---|
| xml |
---|
| xml |
---|
title | "Sample change text field" | xml |
---|
|
<attribute>
<name>duplicate_of</name>
<askString>$(bz.field.DuplicateOf!mnemonic=d):</askString>
</attribute>
|
...