Skip to content
New issue

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

Move Ticket to another workflow (e.g. Transition to "In Progress") #354

Open
lumo2707 opened this issue Oct 24, 2022 · 1 comment
Open

Comments

@lumo2707
Copy link

lumo2707 commented Oct 24, 2022

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.`)
})

            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>;

@asharpe
Copy link

asharpe commented Dec 14, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants