I would like to create an issue by jira4r gem and attach it to special components. I use code as you see below.
jira = Jira4R::JiraTool.new(2, "http://example.com/jira/")
jira.login("robot", "robot")
issue = Jira4R::V2::RemoteIssue.new
issue.project = "ABC"
issue.type = "1"
issue.components = ['10000']
issue.summary = "Do somethigs"
issue.assignee = -1
jira.createIssue(issue)
but there is a problem that it return an error
SOAP::FaultError java.lang.IllegalArgumentException: array element type mismatch
and it is caused by setting “components”
Do you have some ideas how to fix it?
yay! I found the solution, mb it helps someone