hubot-jira-bot
hubot-jira-bot copied to clipboard
Could not able to issue Ticket assign command
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
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.
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"