{"@attributes":{"version":"2.0"},"channel":{"title":"Javascript on \u00d6zkan Pakdil Software Engineer","link":"https:\/\/ozkanpakdil.github.io\/categories\/javascript\/","description":"Recent content in Javascript on \u00d6zkan Pakdil Software Engineer","image":{"title":"\u00d6zkan Pakdil Software Engineer","url":"https:\/\/ozkanpakdil.github.io\/images\/papermod-cover.png","link":"https:\/\/ozkanpakdil.github.io\/images\/papermod-cover.png"},"generator":"Hugo -- 0.148.2","language":"en","copyright":"\u00d6zkan Pakdil","lastBuildDate":"Wed, 04 Sep 2019 08:05:30 +0000","item":{"title":"How to call Atlassian Cloud Jira Rest API","link":"https:\/\/ozkanpakdil.github.io\/posts\/my_collections\/2018\/2019-09-04-call-atlassian-cloud-jira-rest\/","pubDate":"Wed, 04 Sep 2019 08:05:30 +0000","guid":"https:\/\/ozkanpakdil.github.io\/posts\/my_collections\/2018\/2019-09-04-call-atlassian-cloud-jira-rest\/","description":"<p>I needed to call atlassian jira custom fields rest service and show them as good as possible. I know jira admin panel has a page for it. I am just trying to list them in a seperate page. First of al for easy development we can get json with this shell script.<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"display:flex;\"><span><span style=\"color:#75715e\">#!\/bin\/bash\n<\/span><\/span><\/span><span style=\"display:flex;\"><span><span style=\"color:#75715e\"><\/span>USER<span style=\"color:#f92672\">=<\/span><span style=\"color:#e6db74\">&#39;YOUREMAIL:TOKEN&#39;<\/span> <span style=\"color:#75715e\"># get it from https:\/\/id.atlassian.com\/manage\/api-tokens<\/span>\n<\/span><\/span><span style=\"display:flex;\"><span>URL<span style=\"color:#f92672\">=<\/span><span style=\"color:#e6db74\">&#39;https:\/\/test1q2w.atlassian.net\/rest\/api\/3\/field&#39;<\/span>\n<\/span><\/span><span style=\"display:flex;\"><span>curl --request GET   --url $URL  --user  $USER  --header <span style=\"color:#e6db74\">&#39;Accept: application\/json&#39;<\/span> &gt; test.json\n<\/span><\/span><\/code><\/pre><\/div><p>Now we have test.json to load and show. also it needs a little bit extra. therefore we just write var data= in to the file and load it like<\/p>"}}}