We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi I am struggling with the API.
First of all I search the right transition object:
jira.listTransitions(issueNumber) .then(transitions => { const transitionToApply = _.find(transitions.transitions, (t) => { console.log(t.name) if (t.name.toLowerCase() === statusMatch.toLowerCase()) return true }) // Not found if (!transitionToApply) { console.log('Please specify transition name') console.log('Possible transitions:') transitions.transitions.forEach((t) => { console.log({ id: ${t.id}, name: ${t.name} } transitions issue to '${t.to.name}' status.`) })
jira.listTransitions(issueNumber) .then(transitions => { const transitionToApply = _.find(transitions.transitions, (t) => { console.log(t.name) if (t.name.toLowerCase() === statusMatch.toLowerCase()) return true }) // Not found if (!transitionToApply) { console.log('Please specify transition name') console.log('Possible transitions:') transitions.transitions.forEach((t) => { console.log(
core.setFailed(`Please specify right transition name.`); } ......
` But how I need to call the following function:
transitionIssue(issueId: string, issueTransition: JiraApi.TransitionObject): Promise<JiraApi.JsonResponse>;
The text was updated successfully, but these errors were encountered:
I'd really like to help, but first I need to read your code, and... well I'm not going to read it like that :)
It seems like you're doing all the right stuff, what's the problem you're having?
Sorry, something went wrong.
No branches or pull requests
Hi I am struggling with the API.
First of all I search the right transition object:
jira.listTransitions(issueNumber) .then(transitions => { const transitionToApply = _.find(transitions.transitions, (t) => { console.log(t.name) if (t.name.toLowerCase() === statusMatch.toLowerCase()) return true }) // Not found if (!transitionToApply) { console.log('Please specify transition name') console.log('Possible transitions:') transitions.transitions.forEach((t) => { console.log(
{ id: ${t.id}, name: ${t.name} } transitions issue to '${t.to.name}' status.`)})
`
But how I need to call the following function:
transitionIssue(issueId: string, issueTransition: JiraApi.TransitionObject): Promise<JiraApi.JsonResponse>;
The text was updated successfully, but these errors were encountered: