{"id":78,"date":"2021-03-30T16:18:15","date_gmt":"2021-03-30T16:18:15","guid":{"rendered":"https:\/\/felixaugenstein.com\/blog\/?p=78"},"modified":"2021-08-16T11:34:32","modified_gmt":"2021-08-16T11:34:32","slug":"creating-issues-in-jira-with-watson-assistant","status":"publish","type":"post","link":"https:\/\/felixaugenstein.com\/blog\/creating-issues-in-jira-with-watson-assistant\/","title":{"rendered":"Creating Issues in Jira with Watson Assistant"},"content":{"rendered":"\n<p>Artificial Intelligence in communication with end users is now an integral part of digitized companies. Chatbots are often used to answer general questions. Truly smart chatbots, however, should be deeply integrated into business processes to deliver real added value. Find out how to do this with <a rel=\"noreferrer noopener\" href=\"https:\/\/www.atlassian.com\/software\/jira\" data-type=\"URL\" data-id=\"https:\/\/www.atlassian.com\/software\/jira\" target=\"_blank\">Jira Software<\/a> &#8211; developed by the Australian company <a rel=\"noreferrer noopener\" href=\"https:\/\/www.atlassian.com\/\" data-type=\"URL\" data-id=\"https:\/\/www.atlassian.com\/\" target=\"_blank\">Atlassian<\/a> &#8211; in this blog post! (All documentation for this tutorial, as well as the code, is <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\" target=\"_blank\">available here on GitHub<\/a>.)<\/p>\n\n\n\n<p>So what is Jira, though? <\/p>\n\n\n\n<p>Well, Jira Software is the market standard to enable Scrum teams to plan, track and release software or products in an agile approach. <\/p>\n\n\n\n<p>Jira Software provides a <a rel=\"noreferrer noopener\" href=\"https:\/\/developer.atlassian.com\/server\/jira\/platform\/rest-apis\/\" data-type=\"URL\" data-id=\"https:\/\/developer.atlassian.com\/server\/jira\/platform\/rest-apis\/\" target=\"_blank\">REST<\/a><a href=\"https:\/\/developer.atlassian.com\/server\/jira\/platform\/rest-apis\/\" data-type=\"URL\" data-id=\"https:\/\/developer.atlassian.com\/server\/jira\/platform\/rest-apis\/\"> API <\/a>that allows you to access your Jira projects with other software for common features like creating issues.<\/p>\n\n\n\n<p>Imagine that users of your software or product can communicate e.g. bugs directly via a smart chatbot in natural language, this smart chatbot creates a new bug issue via the Jira REST API, which appears on your backlog. This way, developers can directly record and fix the bug reported by the user for the next sprint. This is an ideal scenario, because here the smart chatbot is directly integrated into the business process and deliveres real added value. With <a rel=\"noreferrer noopener\" href=\"https:\/\/www.ibm.com\/cloud\/watson-assistant\" data-type=\"URL\" data-id=\"https:\/\/www.ibm.com\/cloud\/watson-assistant\" target=\"_blank\">IBM Watson Assistant<\/a> this is possible!<\/p>\n\n\n\n<p>But enough said, let&#8217;s start with the hands-on part and build our smart chatbot. <\/p>\n\n\n\n<p>If you haven&#8217;t done so already, sign up for an <a href=\"https:\/\/cloud.ibm.com\/registration\">IBM Cloud <\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/cloud.ibm.com\/registration\" target=\"_blank\">account<\/a>. (All documentation for this tutorial, as well as the code, is <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\" data-type=\"URL\" data-id=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\" target=\"_blank\">available here on GitHub<\/a>.)<\/p>\n\n\n\n<p>As a first step you can create your first issue via <a rel=\"noreferrer noopener\" href=\"https:\/\/www.postman.com\/\" data-type=\"URL\" data-id=\"https:\/\/www.postman.com\/\" target=\"_blank\">Postman<\/a> and the <a href=\"https:\/\/developer.atlassian.com\/cloud\/jira\/platform\/rest\/v3\/intro\/\">Jira <\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/developer.atlassian.com\/cloud\/jira\/platform\/rest\/v3\/intro\/\" target=\"_blank\">REST<\/a><a href=\"https:\/\/developer.atlassian.com\/cloud\/jira\/platform\/rest\/v3\/intro\/\"> API<\/a>. The corresponding documentation to create an issue can be found <a rel=\"noreferrer noopener\" href=\"https:\/\/developer.atlassian.com\/cloud\/jira\/platform\/rest\/v3\/api-group-issues\/#api-rest-api-3-issue-post\" target=\"_blank\">here<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"574\" src=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/postman-test-1024x574.png\" alt=\"\" class=\"wp-image-80\" srcset=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/postman-test-1024x574.png 1024w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/postman-test-300x168.png 300w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/postman-test-768x430.png 768w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/postman-test-1536x860.png 1536w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/postman-test-2048x1147.png 2048w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/postman-test-830x465.png 830w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/postman-test-230x129.png 230w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/postman-test-350x196.png 350w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/postman-test-480x269.png 480w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If your Post Request in Postman was successful you can select the native Node.js code and try the same thing, this time using Cloud Functions on IBM Cloud. You can invoke your function with parameters, provide some input, such as issue type, summary and description and click &#8220;Apply&#8221;, then click &#8220;Invoke&#8221;. Results are shown in the Activations pane. In Jira your new issue should be created.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"527\" src=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/provide-your-data-1024x527.png\" alt=\"\" class=\"wp-image-81\" srcset=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/provide-your-data-1024x527.png 1024w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/provide-your-data-300x154.png 300w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/provide-your-data-768x395.png 768w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/provide-your-data-1536x791.png 1536w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/provide-your-data-830x427.png 830w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/provide-your-data-230x118.png 230w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/provide-your-data-350x180.png 350w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/provide-your-data-480x247.png 480w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/provide-your-data.png 2043w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now you can go to &#8220;Endpoints&#8221;, enable your Cloud Function as a Web Action and provide the endpoint in your Watson Assistant, under Options and then select Webhooks. Make sure to add a <code>.json<\/code> at the end. (All documentation for this tutorial, as well as the code, is <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\" target=\"_blank\">available here on GitHub<\/a>.) On GitHub a json-Skill is included, which you can import directly into your Watson Assistant Dialog skill.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"466\" src=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/add-webhook-dotjson-1024x466.png\" alt=\"\" class=\"wp-image-87\" srcset=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/add-webhook-dotjson-1024x466.png 1024w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/add-webhook-dotjson-300x137.png 300w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/add-webhook-dotjson-768x350.png 768w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/add-webhook-dotjson-1536x699.png 1536w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/add-webhook-dotjson-2048x933.png 2048w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/add-webhook-dotjson-830x378.png 830w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/add-webhook-dotjson-230x105.png 230w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/add-webhook-dotjson-350x159.png 350w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/03\/add-webhook-dotjson-480x219.png 480w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>That&#8217;s it already! This is how easy it is to make your chatbot really smart and embed it into business processes to create real value &#8211; using Watson Assistant on the IBM Cloud. For more details and code examples regarding this tutorial, please refer to <a href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\" data-type=\"URL\" data-id=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\">this <\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\" data-type=\"URL\" data-id=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\" target=\"_blank\">GitHub<\/a><a href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\" data-type=\"URL\" data-id=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\"> repository<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Artificial Intelligence in communication with end users is now an integral part of digitized companies. Chatbots are often used to answer general questions. Truly smart chatbots, however, should be deeply integrated into business processes to deliver real added value. Find out how to do this with Jira Software &#8211; developed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":82,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,3,4,30,19,18,5],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-functions","category-ibm-cloud","category-ibm-watson","category-node-js","category-rest-apis","category-serverless","category-watson-assistant"],"_links":{"self":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":5,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":140,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions\/140"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/media\/82"}],"wp:attachment":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}