Advertisement
Guest User

Untitled

a guest
Aug 8th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. jira/rest/api/2/dashboard?startAt=&maxResults=
  2.  
  3. jira/plugins/servlet/Wallboard/?dashboardId=&os_username=&os_password=
  4.  
  5. curl -D- -u fred:fred -X GET -H "Content-Type: application/json" http://example.com/rest/api/2/issue/createmeta
  6.  
  7. curl -D- -X GET -H "Authorization: Basic %BASE64-CREDENTIDALS%" -H "Content-Type: application/json" "https://webjets.atlassian.net/rest/api/2/issue/WJ-333"
  8.  
  9. var user = window.btoa( user + ":" + password );
  10. getRequiredTickets("key=ABC", user);
  11.  
  12. function getRequiredTickets(query, credentials){
  13. $.ajax
  14. ({
  15. type: "GET",
  16. url: "https://ltn3-pur-jira.company.corp:1234/rest/api/2/search?jql=" + query,
  17. dataType: 'json',
  18. async: false,
  19. headers: {
  20. "Authorization": "Basic " + credentials
  21. },
  22. success: ajaxSuccess, //some callback function
  23. error: ajaxFail //some callback function
  24. });
  25. }
  26.  
  27. "content_scripts": [
  28. {
  29. "matches": ["<all_urls>"],
  30. "js": ["content.js", "jquery-3.2.1.min.js"]
  31. }
  32. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement