Ruby: Is there any way to move versions in JIRA via Ruby rest-client -


recently tried rewrite old legacy python program our production ruby environment. main goal of script is:

  • get version jira project test
  • get parent version
  • create new version after parent

jira-ruby gem creating things, there no "move" method, tried use rest library.

but can't figure how move newly created version after parent one.

https://developer.atlassian.com/static/rest/jira/6.1.html#d2e137

how should sent rest query move version 22015 after 22010 via post method?

require 'rubygems' require 'json' require 'restclient'  def jira_request   project_key="test"   jira_login = "bot"   jira_pass = "password"   jira_url = "http://#{jira_login}:#{jira_pass}@jira.local:16011/rest/api/2/version/22105/move"    @move = restclient.post "#{jira_url}",   {     'after' => "http://jira.local:16011/rest/api/2/version/22106"   }.to_json, :content_type => :json, :accept => :json    @jiradata = json.parse(@move) end  jira_request 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -