GetFieldValue

Returns the value of a Helix ALM issue field as a string.

You can use this statement to use issue field values in other statements and verify field values before adding issues to Helix ALM. For example, get the Type value from an issue and use it to report on the types of issues created from QA Wizard Pro scripts. You can also get an existing field value and append a new value to it.

Note: This statement cannot be used in load test scripts.

Syntax

GetFieldValue(Issue, FieldIdentifier)

Arguments

Argument Description
Issue Issue object that contains the field. Use the NewIssue statement to create the issue object.
FieldIdentifier Field name to get the value from.

You can also use the field ID, which is available in the Helix ALM FLDDFNTN database table. You may want to use the ID if issue fields are frequently renamed in the Helix ALM project. Ask your Helix ALM administrator for help.

Return value

Value Description
Value Value set in the issue field.
Null Value is not set in the issue field.

Example

issue = NewIssue()

' Uses field name to set Summary field value

SetFieldValue(issue, "Summary", "An issue occurred when exporting to XML")

' Uses field ID to get Summary field value

summaryValue = GetFieldValue(issue, 2)

 

You can also call this statement directly on a Helix ALM issue object.

issue = NewIssue()

' Uses field name to set Summary field value

issue.SetFieldValue("Summary", "An issue occurred when exporting to XML")

' Uses field ID to get Summary field value

summaryValue = issue.GetFieldValue(2)