Guest User

Untitled

a guest
Jul 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #Loading the modules from a specific location such that JIRA::REST.
  2.  
  3. use JIRA::Client::Automated;
  4. use JIRA::REST;
  5. use Data::Dumper;
  6.  
  7. #Login details about Jira server
  8.  
  9. my $jira = JIRA::REST->new({
  10. url => 'https://xxxxxxxx.xxxxx.com',
  11. username => 'xxxxxxx',
  12. password => 'xxxxxxx',
  13. });
  14.  
  15. # Create the ticket using post function
  16. my $issue = $jira->POST('/issue', undef, {
  17. fields => {
  18. project => { key => 'TIME' },
  19. issuetype => { name => 'Task' },
  20. summary => '20-7-2018 checking field persent or not',
  21. description => 'test',
  22. custom_field => { customfield_11197 => 'VIGIL-72'},
  23. },
  24. });
Add Comment
Please, Sign In to add comment