Skip to content

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

@lumo2707

Description

@lumo2707

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions