Generate output

The Generate outputs of the Produce module are used to create

  • Pseudocode

  • Test Scripts

  • AI Spec Documents

The module supports a large array of programming/scripting languages, including C, C#, C++ and COBOL, to name a few.

The data generated can be appended to a field of the anchor work item, or can be used to create a new work item in ADO. The general information about the module is discussed on the Produce page.

Note: The Generate outputs of Produce and the Generate Documents module are two different things. The Generate outputs produce Pseudocode, Test Scripts and AI Spec Documents from a work item; Generate Documents produces full documents such as a BRD, PRD, Software Requirements Specification, System Design Document, Test Plan or Release SOP.

1. Click the OUTPUT section of the RECIPE bar, expand the Generate group and select the generation type (Pseudocode, Test Script, or AI Spec Document).

2. If you have selected Pseudocode, the third section of the RECIPE bar is PROGRAMMING LANGUAGE. Click it to choose the desired programming language; use the search box at the top of the list to find a language quickly. By default, Pseudocode is selected.

3. If you have selected Test Script, the third section of the RECIPE bar becomes FRAMEWORK instead. Click it to choose the desired framework. By default, Selenium is selected.

If you have selected AI Spec Document, the RECIPE bar has no third section.

Generate

4. Click the Generate button at the bottom left of the window, or the generate link shown in the right panel.

The Pseudocode, Test Script or AI Spec Document is generated from the selected fields of the anchor work item and is displayed in the right panel. Once the draft is ready, the status bar confirms that the result can be reviewed (for example “Pseudocode drafted — review, then publish”), and the Create Work Item and Add to Field buttons become available.

5. Users can multi-select work items and invoke Copilot4DevOps – Produce, allowing users to generate Pseudocode and Test Scripts for all selected work items cumulatively. Select the required work items in the Queries or Backlog, and then click the Copilot4DevOps option from the context menu. See Multiple Work Items on the Produce page for the complete steps.

The window is divided into two sections, the left panel and right panel.

a. Left Panel: Data of the selected work item fields is displayed here, in a collapsible section per field.

- If a selected work item field contains embedded images, those images are processed as part of the operation and rendered inline within the panel.

b. Right Panel: The generated result is displayed here.

Create Work Item

In this example, Pseudocode is generated from the Title and Description fields of work item 10606, with Pseudocode selected as the PROGRAMMING LANGUAGE.

6. Click on the Create Work Item button.

Note: In case of multiple selected work items the Create Work Item button is not available.

A dialogue box opens, named after the type of content that was generated (for example Create pseudocode), containing the Work Item Type, Work Item Field and Link with existing work item dropdowns.

7. Select the Work Item Type, Work Item Field and Link with existing work item values, and click the Create button.

If a required field of the new work item has no value, the work item window opens with a message naming the field, for example “Field 'Original Estimate' cannot be empty.”

Fill in the required field and click Save and Close.

The work item is now created in the ADO project/team and the generated data is added in the selected field as it is.

A confirmation message, “Work item(s) created successfully. You can now continue working with them in Copilot4DevOps.”, is displayed, and the newly created work item is listed at the bottom of the left panel.

Note: When a work item is created from Copilot4DevOps, it automatically inherits both the Area Path and the Iteration Path of the parent (anchor) work item, keeping child items aligned with their parent's area and sprint and reducing manual effort during planning.

  • Before the work item is created, the system validates whether the current user has permission to create or edit work items in the inherited Area Path.

  • If the user has access, the work item is created successfully with the inherited Area Path and Iteration Path.

  • If the user does not have access to the inherited Area Path, the Work Item window opens so the user can change the Area Path before creating the work item.

The user can open the work item in the Azure DevOps editor using the hyperlink on its work item type and ID (for example, TASK 26120), shown with its title in the card at the bottom of the left panel.

In this example, the new work item (31129) contains the generated pseudocode in the Description field.

The newly created work item is shown with the following options:

  • Switch work item: When selected, this option sets the work item as the anchor work item.

  • Open in module: The user can open the newly created work item in any of the Copilot4DevOps modules.

  • Cancel: Removes the work item from the panel.

Add to Field

8. Click on the Add to Field button to add the generated result to a field of the anchor work item.

Note: In case of multiple selected work items the Add to Field button is not available.

The Add to Field dialogue box opens, containing a Work Item Field dropdown.

9. Click the arrow of the Work Item Field dropdown to see the fields to which the generated output can be added, and select the desired field.

10. Click the arrow on the Add button and choose how the data should be written to that field in the ADO Editor window.

  • Add to Top — inserts the generated data above the existing content of the field.

  • Add to Bottom — appends the generated data below the existing content of the field.

  • Replace — replaces the existing content of the field with the generated data.

11. The data is added to the selected field and the user is taken to the Home Page.

In this example, the work item opened in Azure DevOps shows the pseudocode added to the Acceptance Criteria field.

12. Click on the Copy icon at the top right of the right panel to copy the generated result to the clipboard. The Refresh icon beside it regenerates the result.

13. On clicking the Cancel button, the Produce window is closed.