floralvikings / jira-connector

NodeJS Wrapper for the Jira REST API
http://floralvikings.github.io/jira-connector/
MIT License
373 stars 180 forks source link

Cannot update any part of the JIRA issue #187

Closed elizyu closed 5 years ago

elizyu commented 5 years ago

Hello, I've ran several methods that were supposed to update the jira issue on the website. The console log returned messages that seemed to indicate the methods are running properly. However, when I refreshed the jira issue webpage, no change occurred. I wonder if anyone has experienced the similar problem?

jira.issue.editIssue({ issueKey: "ENSTI-130", issue : { key: 'ENSTI-130',  fields: { summary: 'dummy issue' }}, (error, result) => {
    if(error){
        console.log(error);
    } else {
        console.log(result);
    }
});

As a result, I get this:

Issue Updated
jira.issue.addComment({issueKey: "ENSTI-130", comment: "Dummy Comment"}, function(error, result) {
    if(error){
        console.error(error);
    } else {
        console.log(error);
    }
}

This returned:

{ startAt: 0, maxResults: 1048576, total: 0, comments: []}
jira.issue.deleteComment({ issueKey: "ENSTI-130", commentId: ‘162907’ },(error, result) => {
    if(error) {
        console.error(error);
    } else {
        console.log(result);
    }
})

This returned:

Comment Deleted
MrRefactoring commented 5 years ago

Nice catch! I hope the corrections help you. Check 2.16.1 version. Thanks for the contribution!