I'm frequently using Postman to send requests to a Kanban API. However, the data being sent isn't always the same.
For example, the body of the request will always have an ID for the Kanban card to be added to the board, {{External_Card_ID}}
, but it won't always have a plannedFinish or a title.
{
"customId": "{{External_Card_ID}}",
"title": "{{Title}}",
"plannedFinish": "{{Due_Date}}"
}
Is it possible to use pre-request scripts in Postman to check the CSV given to the runner to say something like
requestBody = "{
"customId":"{{External_Card_ID}}""
}"
If csvInput contains "Title" column then
append ",title":"{{Title}}" to requestBody
And then set the body to {{requestBody}}
?
CodePudding user response:
Solution found: use data.ColumnName
CodePudding user response:
I see Kanban, I upvote ! Thanks for the insights, we love this kind of article in our team, we also wrote on the subject and we'd love your feedback: https://zenkit.com/en/blog/dive-into-better-task-management-with-kanban-swimlanes/