Adding Helix ALM issues from scripts

You can add Helix ALM issues using statements in scripts to automatically report errors found during playback. Issues are added to the Helix ALM project configured for the workspace the script is in.

Statements you use to add issues depend on the information to add to the issue and actions to perform related to the issue.

If you want to: Then:
Create an issue with information only in the Summary, Description, Steps to Reproduce, and Other Hardware and Software fields Use the AddIssue statement
Create an issue with information in other fields, add file attachments to the issue, or get information from the issue before adding it to the project Use advanced issue statements

Using the AddIssue statement

Use the AddIssue statement to add an issue with information only in the Summary, Description, Steps to Reproduce, and Other Hardware and Software fields during playback. See AddIssue.

To add information in other issue fields, you must either manually edit the issue after it is added to Helix ALM or use advanced issue statements.

Using advanced issue statements

Use the advanced issue statements to create an empty issue, set and work with issue fields values, attach files to the issue, and then add the issue to Helix ALM.

To add an issue using advanced statements:

1. Add the NewIssue statement to create an empty issue object.

2. Use the SetFieldValue statement to set values in the specified issue fields and the AddFileAttachment statement to attach files to the issue.

Note: You can also use the GetFieldValue and RemoveField statements to work with issue fields. GetFieldValue returns values from issue fields for verification or use in other script lines. RemoveField removes values from fields.

3. Add the AddToHelixALM statement to add the resulting issue to Helix ALM.