<% if User.current.allowed_to?(:use_kanbantool, @project) %><% require "open-uri" begin require "nokogiri" rescue LoadError %>

nokogiri library required. Please install to use this plugin

<% end %>

<% kanban_hide_fields = [] if !Setting.plugin_kanbantool['kanban_hide_fields'].nil? kanban_hide_fields = Setting.plugin_kanbantool['kanban_hide_fields'].split(',') end begin data = URI.parse("https://#{Setting.plugin_kanbantool['kanban_domain']}.kanbantool.com/api/v1/boards.xml?api_token=#{Setting.plugin_kanbantool['kanban_token']}").read doc = Nokogiri::XML(data) counter = 0 counter2 = 0 counter3 = 0 #stages[ID,Name,Board ID] stages = [] #swimlanes[ID,Name,Board ID] swimlanes = [] redmine_url = request.protocol + request.host_with_port + request.fullpath redmine_url.slice! 'projects/test/issues/new' %> <% end %>

<% if !kanban_hide_fields.include? "kanban_stage" %>

<% end if !kanban_hide_fields.include? "kanban_swimlane" %>

<% end %>
<% if !kanban_hide_fields.include? "kanban_subject" %>


(<%= l(:if_kanban_subject_empty) %>)

<% end if !kanban_hide_fields.include? "kanban_description" %>

<% end %>
<% end %>