Sets the value of a Helix ALM issue field.
Note: This statement cannot be used in load test scripts.
Syntax
SetFieldValue(Issue, FieldIdentifier, FieldValue)
Arguments
| Argument | Description |
|---|---|
| Issue | Issue object that contains the field. Use the NewIssue statement to create the issue object. |
| FieldIdentifier | Field name to set the value for. 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. |
| FieldValue | Value to set in the field. If you specify a value for a list field that is not in the corresponding value list, the field is set to <not set> when the issue is added. |
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 set Description field value
SetFieldValue(issue, 54, "When the XML export dialog opened, the application stopped responding.")
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 set Description field value
issue.SetFieldValue(54, "When the XML export dialog opened, the application stopped responding.")