Reputation: 2680
I want to sync two jira instances using using either Mule ESB or Mule Studio (custom connector). Here Mule will act as middleware for two jira instances. If some activity is performed in JIRA-1 ex., issue is created it should be replicated in JIRA-2.
Is this possible using Mule ESB or Mule Studio ?
I am not getting starting point for this. Currently I am looking for Mule Orchestration for this.
Can someone guide me in right direction ?
<jira:config name="Jira_A" doc:name="Jira_for_A" >
</jira:config>
<jira:config name="Jira_B" doc:name="Jira_for_B">
</jira:config>
<flow name="consuming-from-jiraA" doc:name="consuming-from-jiraA">
<poll doc:name="Poll" frequency="1000">
<jira:get-issues-from-jql-search connectionAddress="http://localhost:8080/rpc/soap/jirasoapservice-v2"
connectionPassword="admin" connectionUser="admin"
config-ref="Jira_A" jqlSearch="project = "MULE ESB" AND key = ME-1"
maxNumResults="100" doc:name="Jira_for_A" />
</poll>
<foreach doc:name="For Each">
<jira:create-issue config-ref="Jira_B" doc:name="Jira_for_B"
project="WT" summary="Mule ESB :Jira sync test issue 1 " type="2" connectionAddress="http://192.xxx.x.xx:8091/rpc/soap/jirasoapservice-v2" connectionPassword="admin" connectionUser="admin">
</jira:create-issue>
</foreach>
</flow>
Upvotes: 1
Views: 393
Reputation: 546
Have you tried the jira-connector with the JQL query syntax?
I have not tried before, but I assume you could use the jira connector within a poll, and query one of your jiras instances to retrieve information you want (ticket) and then hit the other jira instance to reflect it if it doesn't exists.
Try if it works.
Upvotes: 0