Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Error when trying to apply a transition #69

Open
deguif opened this issue Jul 3, 2018 · 0 comments
Open

Error when trying to apply a transition #69

deguif opened this issue Jul 3, 2018 · 0 comments

Comments

@deguif
Copy link

deguif commented Jul 3, 2018

I got this error when running this command: gh jira XXXX-ticket --transition 'Changes requested'

Trace: TypeError: Cannot read property 'Changes requested' of undefined
    at Jira.openFieldQuestions (/app/node_modules/gh-jira/bin/jira.js:560:53)
    at /app/node_modules/gh-jira/bin/jira.js:629:28
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)
    at fatalErrorHandler (/app/node_modules/gh-jira/bin/jira.js:201:21)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)

gh-jira/bin/jira.js

Lines 563 to 570 in 5c8fafd

openFieldQuestions (fields, payload) {
var operations = [];
var options = this.options;
var transitionConfig = jiraConfig.transition[options.transition];
if (transitionConfig) {
transitionConfig = this.compileObjectValuesTemplate(transitionConfig);
}

It seems weird that jiraConfig variable is used to retrieve transition.

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

No branches or pull requests

1 participant