ndaversa / hubot-jira-bot

Lets you search for JIRA tickets, open them, transition them thru different states, comment on them, rank them up or down, start or stop watching them or change who is assigned to a ticket. Also, notifications for assignments, mentions and watched tickets.
https://www.npmjs.com/package/hubot-jira-bot
MIT License
61 stars 43 forks source link

Search By JIRA NUMBER #33

Closed mchennamsetty closed 7 years ago

mchennamsetty commented 7 years ago

Looks like we cant search by JIRA Number since jql is search for 'text' so adding 'key' in the fields is not working to perform search by JIRA Number. Ex: bot-name jira search ABC-4

https://jira.xxx.com/jira/rest/api/2/search body is {"jql":"text ~ 'ABC-4'","startAt":0,"maxResults":5,"fields":["issuetype","status","assignee","reporter","summary","description","labels","project"]}

Any Suggestions please!!

vwbusguy commented 7 years ago

If you just give the number without any arguments, it will give the issue detail. Just referencing ABC-4 in-chan will give the details about the ABC-4 ticket.

mchennamsetty commented 7 years ago

Thank you. Appreciated