with Plain and Planview Leankit?
Create a new card type on a board. See the docs here
Create a comment in a card or task. See the docs here
The Plain API provides functionality for automating customer support tasks, such as managing conversations, customers, and team inboxes. Within Pipedream, you can leverage these features to create custom workflows that respond to events from your app or external services, triggering actions in Plain. By integrating the Plain API with Pipedream, you can enhance customer support efficiency, streamline communication, and keep customer data synchronized across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
plain: {
type: "app",
app: "plain",
}
},
async run({steps, $}) {
const data = {
"query": `query Workspace {
workspace(workspaceId: "${this.plain.$auth.workspace_id}") {
id
publicName
}
}`,
}
return await axios($, {
method: "post",
url: `https://core-api.uk.plain.com/graphql/v1`,
headers: {
Authorization: `Bearer ${this.plain.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
Planview LeanKit API empowers users to automate and integrate their Kanban workflow management. With this API, you can programmatically access boards, cards, and related data to sync with other systems, trigger actions based on board updates, and extract analytics for reporting purposes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
planview_leankit: {
type: "app",
app: "planview_leankit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.planview_leankit.$auth.domain}.leankit.com/io/scim/v1/Users`,
auth: {
username: `${this.planview_leankit.$auth.username}`,
password: `${this.planview_leankit.$auth.password}`,
},
})
},
})