hubot-jira-bot icon indicating copy to clipboard operation
hubot-jira-bot copied to clipboard

Could not able to issue Ticket assign command

Open arulvelu21 opened this issue 7 years ago • 2 comments

Hi ,

I have been trying to integrate hubot with JIRA . With this integration i could able to create ticket , list ticket and create subticket. However when i try to assign ticket to some person. It is not getting assigned to assignee. Please let me know where i am going wrong. Your help will be much appreciated.

Thanks Arul

arulvelu21 avatar Jun 27 '17 06:06 arulvelu21

This also does not seem to work, no error is reported - but the case does not update. Using a non-existing case # does throw an error that it doesn't exist.

joshinryz avatar Nov 28 '17 22:11 joshinryz

I resolved this, appears the regex was not matching - this actual happens on most of the calls.

I removed the "Begins with" , as the script is actually receiving text like: "robotname ITH-100 assign @user" not "ITH-100 assign @user" when a user types "IT-100 assign @user"

original: regex: new RegExp "^((?:#{Config.projects.prefixes}-)(?:\d+))(?: (un)?assign)? @?([\w._-])\s$", "i"

Fixed: regex: new RegExp "((?:#{Config.projects.prefixes}-)(?:\d+))(?: (un)?assign)? @?([\w._-])\s$", "i"

joshinryz avatar Dec 04 '17 17:12 joshinryz