(Deprecated) A Single Jira Ticket - EntityML

A JIRA integration bot sends a message as a result of a new ticket being created. The message is submitted as legacy V1 MessageML, including EntityML.

Note: V1 MesageML is not supported by MessageMLV2 ingestion endpoints.


MessageML

MessageML
<messageML>
   <entity type="com.symphony.integration.jira.event.updated" version="1.0">
      <presentationML>
         Test User updated Bug SAM-24, Sample Bug Blocker (
         <a href="https://whiteam1.atlassian.net/browse/SAM-24" />
         ) to
         <b>Done</b>
         <br />
         Assignee: Test2 User
         <br />
         Labels:
         <hash tag="production" />
         <br />
         Priority: Highest
         <br />
         Status: Done
         <br />
         Description:
      </presentationML>
      <entity name="user" type="com.symphony.integration.jira.user" version="1.0">
         <attribute name="username" type="org.symphonyoss.string" value="test" />
         <attribute name="emailAddress" type="org.symphonyoss.string" value="test@symphony.com" />
         <attribute name="displayName" type="org.symphonyoss.string" value="Test User" />
      </entity>

      <entity type="com.symphony.integration.jira.labels" version="1.0">
         <attribute name="#production" type="org.symphonyoss.string" value="#production" />
      </entity>
      <entity type="com.symphony.integration.jira.issue" version="1.0">
         <attribute name="project" type="org.symphonyoss.string" value="Sample 1" />
         <attribute name="key" type="org.symphonyoss.string" value="SAM-24" />
         <attribute name="subject" type="org.symphonyoss.string" value="Sample Bug Blocker" />
         <attribute name="type" type="org.symphonyoss.string" value="Bug" />
         <attribute name="link" type="com.symphony.uri" value="https://whiteam1.atlassian.net/browse/SAM-24" />
         <attribute name="priority" type="org.symphonyoss.string" value="Highest" />
         <attribute name="status" type="org.symphonyoss.string" value="Done" />
         <entity name="assignee" type="com.symphony.integration.jira.user" version="1.0">
            <attribute name="username" type="org.symphonyoss.string" value="test2" />
            <attribute name="emailAddress" type="org.symphonyoss.string" value="test2@symphony.com" />
            <attribute name="displayName" type="org.symphonyoss.string" value="Test2 User" />
         </entity>
      </entity>
      <entity type="com.symphony.integration.jira.changelog" version="1.0">
         <entity type="com.symphony.integration.jira.change" version="1.0">
            <attribute name="fieldName" type="org.symphonyoss.string" value="resolution" />
            <attribute name="oldValue" type="org.symphonyoss.string" value="null" />
            <attribute name="newValue" type="org.symphonyoss.string" value="Done" />
         </entity>
         <entity type="com.symphony.integration.jira.change" version="1.0">
            <attribute name="fieldName" type="org.symphonyoss.string" value="status" />
            <attribute name="oldValue" type="org.symphonyoss.string" value="To Do" />
            <attribute name="newValue" type="org.symphonyoss.string" value="Done" />
         </entity>
      </entity>
   </entity>
</messageML>

Internal Representation

The API Agent converts the submitted MessageML into the following PresentationML and EntityJSON:

PresentationML

MessageML
<presentationML>
   <div class="entity" data-entity-id="jiraUpdated">
         Test User updated Bug SAM-24, Sample Bug Blocker (
         <a href="https://whiteam1.atlassian.net/browse/SAM-24" />
         ) to
         <b>Done</b>
         <br />
         Assignee: Test2 User
         <br />
         Labels:
         <hash tag="production" />
         <br />
         Priority: Highest
         <br />
         Status: Done
         <br />
         Description:
	</div>
</presentationML>

EntityJSON

EntityJSON
{
	"jiraUpdated":
	{
		"type":		"com.symphony.integration.jira.event.updated" ,
		"version":	"1.0",
		"user":
		{
			"type":			"com.symphony.integration.jira.user"
			"version":		"1.0",
			"username":		"test",
			"emailAddress":	"test@symphony.com",
			"displayName":	"Test User"
		},
		"labels":
		[
			"#production"
		],
		"issue":
		{
			"type":		"com.symphony.integration.jira.issue"
			"version":	"1.0",
			"project":	"Sample 1",
			"key":		"SAM-24",
			"subject":	"Sample Bug Blocker",
			"type":		"Bug",
			"link":		"https://whiteam1.atlassian.net/browse/SAM-24",
			"priority":	"Highest",
			"status":	"Done",
			"assignee":
			{
				"type":			"com.symphony.integration.jira.user"
				"version":		"1.0",
				"username":		"test2",
				"emailAddress":	"test2@symphony.com",
				"displayName":	"Test2 User"
			},
			"changelog":
			{
				"type":		"com.symphony.integration.jira.changelog",
				"version":	"1.0",
				"change":
				[
					{
						"type":			"com.symphony.integration.jira.change",
						"version":		"1.0",
						"fieldName":	"resolution",
						"oldValue":		"null",
						"newValue":		"Done"
					},
					{
						"type":			"com.symphony.integration.jira.change",
						"version":		"1.0",
						"fieldName":	"status",
						"oldValue":		"To Do",
						"newValue":		"Done"
					}
				]
			}
		}
	}
}


			

Need help? Email help@finos.org we'll get back to you.

Content on this page is licensed under the CC BY 4.0 license.
Code on this page is licensed under the Apache 2.0 license.