JiraV3ConvertSubtasksToTable
This script is used to convert Jira subtasks to a table.
python · Atlassian Jira
Details
| ID | JiraV3ConvertSubtasksToTable |
|---|---|
| Language | python |
| From Version | 6.8.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | dynamic-section |
README
This script is used to convert Jira subtasks to a table.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | dynamic-section |
| Cortex XSOAR Version | 5.5.0 |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.
CONTEXT_RESULTS = '[{"id":"21538","key":"COMPANYSA-70"},{"id":"21619","key":"COMPANYSA-145"}]' EXPECTED_TABLE = "|Id|Key|\n|---|---|\n| 21538 | COMPANYSA-70 |\n| 21619 | COMPANYSA-145 |\n" def test_convert_to_table(): """ Given: - A list of subtasks of a Jira issue in string format When: - Calling convert_to_table function Then: - Validate the table is created correctly """ from JiraV3ConvertSubtasksToTable import convert_to_table result = convert_to_table(CONTEXT_RESULTS) assert result.readable_output == EXPECTED_TABLE