-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Framework] Added support for items to parse in mapping (#429)
# Description What - A valid mapping can be looked as follows: ```yaml - kind: issue selector: query: .item.name != 'test-item' and .issueType == 'Bug' port: itemsToParse: .fields.components entity: mappings: identifier: .item.name title: .item.name blueprint: '"testBlueprint"' properties: {} relations: issue: .key ``` issue's json from api: ```json { "url": "https://example.com/issue/1", "status": "Open", "issueType": "Bug", "components": [{"name": "Authentication"}, {"name": "Frontend"}], "assignee": "user1", "reporter": "user2", "creator": "user3", "priority": "High", "created": "2024-03-18T10:00:00Z", "updated": "2024-03-18T12:30:00Z", "key": "ISSUE-1", } ``` it will map the component attribute array of each issue got from the api to "testBlueprint" entity, with identifier and parser equals to the component's name Why - To let integrations map internal array to several entities ## Type of change Please leave one option from the following and delete the rest: - [ ] Bug fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which adds functionality) - [ ] New Integration (non-breaking change which adds a new integration) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Non-breaking change (fix of existing functionality that will not change current behavior) - [ ] Documentation (added/updated documentation) ## Screenshots Include screenshots from your environment showing how the resources of the integration will look. ## API Documentation Provide links to the API documentation used for this integration.
- Loading branch information
Showing
5 changed files
with
126 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters