Closed scottharman closed 12 years ago
jiraSOAP doesn't provide the full convenience of an ORM (I never got around to it). Some things like the key and summary are attached to the object, so issue.key
and issue.summary
should give you the key and summary respectively.
However, things like issue.priority
are only referenced, so you will have to use the issue.priority_id
and then correlate it with the id
of a priority.
There should be an example in the Examples file: http://rdoc.info/gems/jiraSOAP/file/docs/Examples.markdown
And in general the documentation should be helpful: http://rdoc.info/gems/jiraSOAP/JIRA/RemoteAPI http://rdoc.info/gems/jiraSOAP/JIRA/Issue#priority_id-instance_method
Thanks for the prompt response - I'll continue to play, but I suspect that I might be able to bodge enough to make it work for my needs ;) I was hoping to be able to treat issues as ActiveRecords, but now after reading a bit more that's not really the way to try and go about things Many thanks Scott
On Tue, Jun 19, 2012 at 4:04 PM, Mark Rada < reply@reply.github.com
wrote:
jiraSOAP doesn't provide the full convenience of an ORM (I never got around to it). Some things like the key and summary are attached to the object, so
issue.key
andissue.summary
should give you the key and summary respectively.However, things like
issue.priority
are only referenced, so you will have to use theissue.priority_id
and then correlate it with theid
of a priority.There should be an example in the Examples file: http://rdoc.info/gems/jiraSOAP/file/docs/Examples.markdown
And in general the documentation should be helpful: http://rdoc.info/gems/jiraSOAP/JIRA/RemoteAPI http://rdoc.info/gems/jiraSOAP/JIRA/Issue#priority_id-instance_method
Reply to this email directly or view it on GitHub: https://github.com/Marketcircle/jiraSOAP/issues/17#issuecomment-6427350
I'm hoping to just cherry pick some fields out of the issue objects - and those of the linked issues i.e. issue.key issue.summary issue.assignee issue.reporter issue.status issue.resolution issue.priority issue.severity (custom) issue.serial_no (custom) issue.customer_name (custom) issue.linked_issue_key issue.linked_issue_summary issue.linked_issue_status
I can imagine the latter three would be difficult to find - but right now I can't even get the assignee Any thoughts on how to address this?