Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » BIRT Webservice ODA integration with JIRA(How to deal with JIRA login token creation and passing)
BIRT Webservice ODA integration with JIRA [message #878835] Wed, 30 May 2012 03:11 Go to next message
Jay Hamilton is currently offline Jay HamiltonFriend
Messages: 19
Registered: October 2011
Junior Member
I have successfully connected to an instance of JIRA and can call the login function to get back a token. However, I tried using a report parameter to pass the token back in as a parameter to subsequent JIRA Soap methods. There seems to be no way to tie the token data set value to a report parameter. Maybe through scripting? Even if that works I am not sure that will ultimately work.

Is the custom connection class the way to go?
Re: BIRT Webservice ODA integration with JIRA [message #879126 is a reply to message #878835] Wed, 30 May 2012 15:07 Go to previous messageGo to next message
Jay Hamilton is currently offline Jay HamiltonFriend
Messages: 19
Registered: October 2011
Junior Member
So my goal is to call the JIRA webservice method login, passing in a user and password. I can do this from BIRT and get a response in the form of a data set column value that includes the token returned from the service.

My goal is to take the token and use it in another SOAP based data source. So I tried to use dataset["tokenColumnValue"] as a parameter within the following SOAP request:

<in0 xsi:type="xsd:string">&?in0?&</in0>
<in1 xsi:type="xsd:string">&?in1?&</in1>
</m:getProjectByKey>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The first parameter, in0, corresponds to the token JIRA expects. I tried to pass the dataset["tokenVolumnValue"] in for that parameter along with a default project key.

When the report runs the token is returned but it does not seem to be getting passed into the SOAP request.

So the investigation continues.
Re: BIRT Webservice ODA integration with JIRA [message #879156 is a reply to message #879126] Wed, 30 May 2012 16:11 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You could do this with a custom connection class. See this article:
http://www.birt-exchange.org/org/devshare/designing-birt-reports/461-birt-web-service-oda-article/

But another way would be to do it the way you are doing it but make sure
the second request is in a nested table. The outer table would be the
auth request and the inner one would be the second request and you would
bind the in0 parameter to the outer tables tokenVolumnValue.

Jason

On 5/30/2012 11:07 AM, Jay Hamilton wrote:
> So my goal is to call the JIRA webservice method login, passing in a
> user and password. I can do this from BIRT and get a response in the
> form of a data set column value that includes the token returned from
> the service.
> My goal is to take the token and use it in another SOAP based data
> source. So I tried to use dataset["tokenColumnValue"] as a parameter
> within the following SOAP request:
>
> <in0 xsi:type="xsd:string">&?in0?&</in0>
> <in1 xsi:type="xsd:string">&?in1?&</in1>
> </m:getProjectByKey>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> The first parameter, in0, corresponds to the token JIRA expects. I tried
> to pass the dataset["tokenVolumnValue"] in for that parameter along with
> a default project key.
>
> When the report runs the token is returned but it does not seem to be
> getting passed into the SOAP request.
>
> So the investigation continues.
Re: BIRT Webservice ODA integration with JIRA [message #879275 is a reply to message #879156] Wed, 30 May 2012 22:26 Go to previous message
Jay Hamilton is currently offline Jay HamiltonFriend
Messages: 19
Registered: October 2011
Junior Member
Thanks Jason! I will give these suggestions a try.
Previous Topic:Stacked Bar Chart in 2.5.2 -- need to set series visibility based on other data column value
Next Topic:Build DataSource from code - without external resources?
Goto Forum:
  


Current Time: Mon Dec 22 08:40:02 GMT 2014

Powered by FUDForum. Page generated in 0.02566 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software