Advertisement
andrejsstepanovs

jira-mite copy paste new ticket

Nov 9th, 2020 (edited)
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # copy bookmark
  2.  
  3. javascript:(function(){
  4. const field1 = "[data-test-id='issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container'] a span";
  5. const field2 = "[data-test-id='issue.views.issue-base.foundation.summary.heading']";
  6. let key = document.querySelector(field1).innerText;
  7. let label = document.querySelector(field2);
  8. let comment = key + " " + label.innerText;label.innerText = comment;
  9. document.location.href = "https://ecocode.mite.yo.lk/#now?comment="+comment;
  10. })();
  11.  
  12.  
  13. # paste bookmark
  14.  
  15. javascript:(function(){
  16. let comment = document.location.href.split("comment=")[1];
  17. document.getElementById("open_new").click();
  18. document.getElementById("time_entry_note").value = decodeURI(comment);
  19. })();
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement