The Convert To outputs of the Produce module convert the selected fields of a work item into Gherkin, a Use case or a User story. The result can be used to create a new work item, or can be added to a field of the anchor work item.
1. Click the OUTPUT section of the RECIPE bar and, under Convert To, select the conversion type (Gherkin, Use case or User story). By default, Gherkin is selected.

2. On clicking the Generate button or the generate link, conversion is done for the selected fields of the anchor work item.

The result is shown in the right panel, and the status bar shows the number of items drafted, for example “11 scenario(s) drafted — review, then publish”. The Create Work Item and Add to Field buttons become available.

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.
- If a selected work item field contains embedded images, those images are processed as part of the conversion and rendered inline within the panel.
b. Right Panel: The data of the selected work item is converted and is displayed here.

3. Click on the Create Work Item button.

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

4. Select the Work Item Type, Work Item Field, and Link with existing work item from the dropdowns to create the new work item with the selected work item type, to add the generated result in the selected work item field, and to link it with the anchor work item with the selected link type.



5. Click on 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 'Effort' 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.

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.
6. You can open the newly created 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. The new work item contains the generated data in the selected field, and it is linked to the anchor work item with the selected link type; in this example it is a child of work item 10606.

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.
7. You can regenerate the result if you are not satisfied with it, using the Refresh icon at the top right of the right panel. You can also copy the generated content using the Copy icon beside it.

8. Click on the Add to Field button.

The Add to Field dialogue box opens, containing a Work Item Field dropdown to select the work item field to which the generated result is added.

9. Select the relevant field where you want to add the converted data.

10. Click the arrow on the Add button.

Choose how the converted data should be written to the selected field in the ADO Editor window:
Add to Top: inserts the converted data above the existing content of the field.
Add to Bottom: appends the converted data below the existing content of the field.
Replace: replaces the existing content of the field with the converted data.

11. Click the Cancel button to close the Produce module.
