Hi Alessio,
Can you try the following configuration,
<property name="messageType" value="text/xml" scope="axis2"/><property
name="msg" expression="//jsonObject/message" scope="default"
type="STRING"/><property name="objId" expression="//jsonObject/objId"
scope="default" type="STRING"/><property name="user"
expression="//jsonObject/user" scope="default"
type="STRING"/><property name="summ1" value="Issue sent form user: "
scope="default" type="STRING"/><property name="summ2" value=" related
to object:" scope="default" type="STRING"/><property name="summary"
expression="fn:concat(get-property('summ1'),get-property('user'),get-property('summ2'),get-property('objId'))"
scope="default" type="STRING"/>
<jira.createIssue>
<projectKey>MY PROJECT</projectKey>
<summary>{$ctx:summary}</summary>
<description>{$ctx:msg}</description>
<issueType>Bug</issueType> </jira.createIssue>
Regards,
Senduran
On Fri, Oct 24, 2014 at 3:14 PM, Aliosha <[email protected]> wrote:
> Hi
>
> in my use case i need to write a proxy in which i can dynamically build a
> jira issue catching the data from the request sent to the same proxy. In
> the payload of the request there is a Json object like this:
>
> {"objId":"073456","user":"sysadmin","message":"message of the issue"}
>
> From this json i want to build this jira "create issue" statement:
>
> <jira.createIssue>
> <projectKey>MY PROJECT</projectKey>
> <summary>Issue sent form user: USER related to object: OBJID </summary>
> <description>MESSAGE</description>
> <issueType>Bug</issueType>
> </jira.createIssue>
>
> where USER, OBJID and MESSAGE are picked up from the json above. How can i
> do it?
>
> Best regards
>
> Alessio
>
--
*Senduran *
Software Engineer,
WSO2, Inc.; http://wso2.com/ <http://wso2.com/>
Mobile: +94 77 952 6548
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev