Child pages
  • How to Customize the Bugs Workflow

Versions Compared

Key

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

...

Below is the description of tags used to define the fields change.

value

...

The value tag assigns the specified value to the field defined in the name tag.

Code Block
xml
xml
title"Sample modification"
<attribute>
  <name>status</name>
  <value>RESOLVED</value>
</attribute>

This tag is now applicable only to for enumeration fields only (such as status or assignee). The tag content contains is the textual presentation representation of desire the desired value. This modification is

When the action is selected from the Workflow combo box the modified field is shown to user on action window but can not be modifiedwith its new value in the Action window in the read-only mode.

askAddTextElement

...

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"
<attribute>
  <name>comments</name>
  <askAddTextElement>$(bz.form.label.comment!mnemonic=o):</askAddTextElement>
  <checkbox>$(bz.form.label.privateComment!mnemonic=p)</checkbox>
</attribute>

Now this modification This tag can only be used only to add comment to a bug. It comments to an issue and should be used as shown in the example.
Content of askAddTextElement defines the text box label text. Content of checkbox defines the text shown near next to checkbox the "private comment" . Both checkbox, which defines if the comment is visible to other users. Content of both tags can be replaced filled with any readable text.

askAddNotEmptyTextElement

...

This modification tag is the same as askAddTextElement\ but enforces to provide comment. Action can not be finished until comment text is empty.

...

, but makes the comment mandatory. The action cannot be completed unless the comment is specified.

askReference

Anchor
askReference
askReference

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"
<askReference>$(bz.field.Resolution!mnemonic=r):</askReference>
<exclude>N/A</exclude>
<exclude>DUPLICATE</exclude>

This modification allows to choose value for single enumeration field. Content of askReference allows to provide label text. On action form this modification is shown as combobox.
This modification supports additional exclude tags. Each of them allows removes one value from combobox variants.

askEditableReference: Choose or type in single enumeration value

This modification acts as askReference\ modification. The difference is that user may type in new value. exclude tags aren't supported for this modification.

...

The content of askReference specifies the label text.

This element supports additional exclude tags which remove the specified values from the values list.

askEditableReference

This tag works as the askReference tag, but allows user to type in new values and is shown as a standard combo box in the Action window where a user can either select or type in a new value. The exclude tags are not supported for this element.

askString

This tag prompts a user to change the value of text field when the action is performed by specifying a new value in the text box.

Code Block
xml
xml
title"Sample change text field"
<askString>$(bz.field.DuplicateOf!mnemonic=d):</askString>

Allows to change value of text field when action is performed. In action window presented with text field.