You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/07/19 06:22:20 UTC
[GitHub] [incubator-devlake] mindlesscloud opened a new pull request, #2536: fix: fix the schema of transformationRules
mindlesscloud opened a new pull request, #2536:
URL: https://github.com/apache/incubator-devlake/pull/2536
# Summary
Adapting the back-end structure to the front-end data format
POST http://127.0.0.1:8080/blueprints
request:
```json
{
"name": "test blueprint normal",
"mode": "NORMAL",
"settings": {
"version": "1.0.0",
"connections": [
{
"plugin": "jira",
"connectionId": 1,
"scope": [
{
"options": {
"boardId": 8,
"connectionId": 1
},
"transformationRules": {
"epicKeyField": "customfield_10014",
"storyPointField": "customfield_10024",
"remotelinkCommitShaPattern": ".*/commit/(.*)",
"typeMappings": {
"Bug": {
"standardType": "Bug"
},
"Task": {
"standardType": "Requirement"
},
"任务": {
"standardType": "Requirement"
},
"Incident": {
"standardType": "Incident"
}
}
},
"entities": [
"CODE",
"TICKET",
"CICD",
"CROSS",
"CODEREVIEW"
]
}
]
}
]
},
"isManual": true
}
```
response:
```json
{
"name": "test blueprint normal",
"mode": "NORMAL",
"plan": [
[
{
"plugin": "jira",
"subtasks": [
"collectStatus",
"extractStatus",
"collectProjects",
"extractProjects",
"collectBoard",
"extractBoard",
"collectIssueTypes",
"extractIssueType",
"collectIssues",
"extractIssues",
"collectIssueChangelogs",
"extractIssueChangelogs",
"collectAccounts",
"collectWorklogs",
"extractWorklogs",
"collectRemotelinks",
"extractRemotelinks",
"collectSprints",
"extractSprints",
"convertBoard",
"convertIssues",
"convertWorklogs",
"convertIssueChangelogs",
"convertSprints",
"convertSprintIssues",
"convertIssueCommits",
"extractAccounts",
"convertAccounts"
],
"options": {
"boardId": 8,
"connectionId": 1,
"transformationRules": {
"epicKeyField": "",
"storyPointField": "",
"remotelinkCommitShaPattern": "",
"typeMappings": null
}
}
}
]
],
"enable": false,
"cronConfig": "",
"isManual": true,
"settings": {
"version": "1.0.0",
"connections": [
{
"plugin": "jira",
"connectionId": 1,
"scope": [
{
"options": {
"boardId": 8,
"connectionId": 1
},
"transformationRules": {
"epicKeyField": "customfield_10014",
"storyPointField": "customfield_10024",
"remotelinkCommitShaPattern": ".*/commit/(.*)",
"typeMappings": {
"Bug": {
"standardType": "Bug"
},
"Task": {
"standardType": "Requirement"
},
"任务": {
"standardType": "Requirement"
},
"Incident": {
"standardType": "Incident"
}
}
},
"entities": [
"CODE",
"TICKET",
"CICD",
"CROSS",
"CODEREVIEW"
]
}
]
}
]
},
"id": 5,
"createdAt": "2022-07-19T14:20:15.802+08:00",
"updatedAt": "2022-07-19T14:20:15.802+08:00"
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] klesh merged pull request #2536: fix: fix the schema of transformationRules
Posted by GitBox <gi...@apache.org>.
klesh merged PR #2536:
URL: https://github.com/apache/incubator-devlake/pull/2536
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org