Custom approval script #1620
-
I am interested in creating a custom approval script that will open a new Jira issue. I don't see how I can get the approval URL from the approval script for the flow. Is there any way I can get the URL? |
Beta Was this translation helpful? Give feedback.
Answered by
rubenfiszel
May 22, 2023
Replies: 1 comment 1 reply
-
Yes, you can use import * as wmill from "https://deno.land/x/[email protected]/mod.ts"
export async function main(approver?: string) {
const endpoints = await wmill.getResumeEndpoints(approver)
console.log(`Approval page at ${endpoints.approvalPage}`)
return endpoints
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hialvaro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can use
getResumeEndpoints
like in this example: https://hub.windmill.dev/scripts/windmill/1391/return-resume-and-cancel-endpoints-windmill