Issue Navigation

Issue Management functions provide elements that help you navigate through the issue model by using generic openness based on the Enterprise Knowledge Language (EKL). The following methods help you navigate the issue data model.

See Also
ER Generic Server EKL Functions
Table 1. Issue Object
Method Name Description ConstantRead
getIssueRASCI() Returns an IssueRASCI object used to retrieve the members exposition of an issue.
getContextItems() Returns a list of IssueContextItem objects used to retrieve the elements associated as context to an issue.
getResolutionItems() Returns a list of IssueResolutionItem objects used to retrieve the elements associated as resolution item to an issue.
getAffectedItems() Returns a list of IssueAffectedItem objects used to retrieve the elements associated as affected item to an issue.
getResolvedByItems() Returns a list of IssueResolvedByItem objects used to retrieve the elements associated as Resolved By to an issue.
getClosureType() Returns a string equal to “None”, “Resolved”, or “Canceled”. Used to retrieve the resolution type of an issue.
IsApprovalEnabled() Returns a boolean (True if enabled, otherwise False). Used to determine if approval is enabled on an issue
Table 2. IssueContextItem
Method Name Description ConstantRead
getPointedResources() Returns an ordered list of DatabaseObjectType.

The ordered list contains 1 to x elements. In case of occurrence, the first element is the root, the last element is the leaf, and the intermediate ones are the relationships part of the occurrence.

Table 3. IssueResolutionItem
Method Name Description ConstantRead
getPointedResources() Returns an ordered list of DatabaseObjectType.

The ordered list contains 1 to x elements. In case of occurrence, the first element is the root, the last element is the leaf, and the intermediate ones are the relationships part of the occurrence.

Table 4. IssueAffectedItem
Method Name Description ConstantRead
getPointedResources() Returns an ordered list of DatabaseObjectType.

The ordered list contains 1 to x elements. In case of occurrence, the first element is the root, the last element is the leaf, and the intermediate ones are the relationships part of the occurrence.

Table 5. IssueResolvedBy
Method Name Description ConstantRead
getPointedResources() Returns an ordered list of DatabaseObjectType.

The ordered list contains 1 to x elements. In case of occurrence, the first element is the root, the last element is the leaf, and the intermediate ones are the relationships part of the occurrence.

Table 6. IssueRASCI
Method Name Description ConstantRead
getCoordinators() Returns a list of strings. Used to retrieve the users individually connected as coordinator.
getGroupCoordinators() Returns a list of ECMUserGroup objects. Used to retrieve the user groups connected as coordinator.
getAssignees()

Returns a list of strings. Used to retrieve the users individually connected as assignee.

getGroupAssignees() Returns a list of ECMUserGroup objects. Used to retrieve the user groups connected as assignee.
getContributors() Returns a list of strings. Used to retrieve the users individually connected as contributor.
getGroupContributors() Returns a list of ECMUserGroup objects. Used to retrieve the user groups connected as contributor.
getFollowers() Returns a list of strings. Used to retrieve the users individually connected as informed user.
getGroupFollowers() Returns a list of ECMUserGroup objects. Used to retrieve the user groups connected as informed user.
getOwner() Returns a string. Used to retrieve the owner of the issue.
Table 7. ECMUserGroup
Method Name Description ConstantRead
getUsers() Returns a list of strings. Used to retrieve the users part of the group.
getURI() Returns a string. Used to retrieve the owner of the issue.

Issue Navigation

/* Define constants */
let issueRasci (IssueRASCI)
let issueCoordinators (List)
let issueCoordinatorsUG (List)
let issueAssignees (List)
let issueAssigneesUG (List)
let issueContributors (List)
let issueContributorsUG (List)
let issueFollowers (List)
let issueFollowersUG (List)
let userName (String)
let group (ECMUserGroup)
let groupURI (String)
let groupMembers (List)
let groupMembersSize (Integer)
let issueOwner (String)
let issueClosureType (String)
let issueApprovalType (Boolean)

let affectedItems (List)
let affectedItem (IssueAffectedItem)
let contextItems (List)
let contextItem (IssueContextItem)
let resolutions (List)
let resolution (IssueResolutionItem)
let resolvedBys (List)
let resolvedBy (IssueResolvedByItem)
let resources (List)
let resourcesSize (Integer)

/* Iterators */
let coordinatorsSize (Integer)
let coordinatorsIterator (Integer)

let coordinatorsUGSize (Integer)
let coordinatorsUGIterator (Integer)

let assigneesSize (Integer)
let assigneesIterator (Integer)

let assigneesUGSize (Integer)
let assigneesUGIterator (Integer)

let contributorsSize (Integer)
let contributorsIterator (Integer)

let contributorsUGSize (Integer)
let contributorsUGIterator (Integer)

let followersSize (Integer)
let followersIterator (Integer)

let followersUGSize (Integer)
let followersUGIterator (Integer)

let affectedItemsSize (Integer)
let affectedItemsIterator (Integer)

let contextItemsSize (Integer)
let contextItemsIterator (Integer)

let resolutionsSize (Integer)
let resolutionsIterator (Integer)

let resolvedBysSize (Integer)
let resolvedBysIterator (Integer)

Validation = true

/*  Closure Type */
set issueClosureType = ThisObject.getClosureType()
if(issueClosureType <> NULL)
{
Trace(1,"The closure type is:" + issueClosureType)
}

/* Approval Type */
set issueApprovalType = ThisObject.getApprovalType()
if(issueApprovalType <> NULL)
{
Trace(1,"The approval type is:" + issueApprovalType)
}

/* RASCI logic */
set issueRasci = ThisObject.getIssueRASCI()

/* Owner */
set issueOwner = issueRasci.getOwner()
if(issueOwner <> NULL)
{
Trace(1,"The owner is:" + issueOwner)
}


/* Coordinators */
set issueCoordinators = issueRasci.getCoordinators()
set issueCoordinatorsUG = issueRasci.getGroupCoordinators()

set coordinatorsSize = issueCoordinators.Size()

if(coordinatorsSize <> 1)
{
	Trace (1, "Incorrect number of Coordinators: " + coordinatorsSize)
	Validation = false
}

set coordinatorsUGSize = issueCoordinatorsUG.Size()

if(coordinatorsUGSize <> 1)
{
	Trace (1, "Incorrect number of UG Coordinators: " + coordinatorsUGSize)
	Validation = false
}

set coordinatorsIterator = 1

for coordinatorsIterator while coordinatorsIterator<=coordinatorsSize
{
	set userName = issueCoordinators->GetItem(coordinatorsIterator)
	Trace (1, "coordinator is : " + userName)
}

set coordinatorsUGIterator = 1

for coordinatorsUGIterator while coordinatorsUGIterator<=coordinatorsUGSize
{
	set group = issueCoordinatorsUG->GetItem(coordinatorsUGIterator)

	set groupURI = group.getURI()
	Trace (1, "coordinator UG URI is : " + groupURI)
	
	set groupMembers = group.getUsers()
	set groupMembersSize = groupMembers.Size()
	
	if(groupMembersSize <> 1)
	{
		Trace (1, "Incorrect number of members in Group: " + groupMembersSize)
		Validation = false
	}
}

/* Assignees */
set issueAssignees = issueRasci.getAssignees()
set issueAssigneesUG = issueRasci.getGroupAssignees()

set assigneesSize = issueAssignees.Size()

if(assigneesSize <> 1)
{
	Trace (1, "Incorrect number of Assignees: " + assigneesSize)
	Validation = false
}

set assigneesUGSize = issueAssigneesUG.Size()

if(assigneesUGSize <> 1)
{
	Trace (1, "Incorrect number of UG Assignees: " + assigneesUGSize)
	Validation = false
}

set assigneesIterator = 1

for assigneesIterator while assigneesIterator<=assigneesSize
{
	set userName = issueAssignees->GetItem(assigneesIterator)
	Trace (1, "assignee is : " + userName)
}

set assigneesUGIterator = 1

for assigneesUGIterator while assigneesUGIterator<=assigneesUGSize
{
	set group = issueAssigneesUG->GetItem(assigneesUGIterator)

	set groupURI = group.getURI()
	Trace (1, "assignee UG URI is : " + groupURI)
	
	set groupMembers = group.getUsers()
	set groupMembersSize = groupMembers.Size()
	
	if(groupMembersSize <> 1)
	{
		Trace (1, "Incorrect number of members in Group: " + groupMembersSize)
		Validation = false
	}
}

/* Contributors */
set issueContributors = issueRasci.getContributors()
set issueContributorsUG = issueRasci.getGroupContributors()

set contributorsSize = issueContributors.Size()

if(contributorsSize <> 1)
{
	Trace (1, "Incorrect number of Contributors: " + contributorsSize)
	Validation = false
}

set contributorsUGSize = issueContributorsUG.Size()

if(contributorsUGSize <> 1)
{
	Trace (1, "Incorrect number of UG Contributors: " + contributorsUGSize)
	Validation = false
}

set contributorsIterator = 1

for contributorsIterator while contributorsIterator<=contributorsSize
{
	set userName = issueContributors->GetItem(contributorsIterator)
	Trace (1, "contributor is : " + userName)
}

set contributorsUGIterator = 1

for contributorsUGIterator while contributorsUGIterator<=contributorsUGSize
{
	set group = issueContributorsUG->GetItem(contributorsUGIterator)

	set groupURI = group.getURI()
	Trace (1, "contributor UG URI is : " + groupURI)
	
	set groupMembers = group.getUsers()
	set groupMembersSize = groupMembers.Size()
	
	if(groupMembersSize <> 1)
	{
		Trace (1, "Incorrect number of members in Group: " + groupMembersSize)
		Validation = false
	}
}

/* Followers */
set issueFollowers = issueRasci.getFollowers()
set issueFollowersUG = issueRasci.getGroupFollowers()

set followersSize = issueFollowers.Size()

if(followersSize <> 1)
{
	Trace (1, "Incorrect number of Followers: " + followersSize)
	Validation = false
}

set followersUGSize = issueFollowersUG.Size()

if(followersUGSize <> 1)
{
	Trace (1, "Incorrect number of UG Followers: " + followersUGSize)
	Validation = false
}

set followersIterator = 1

for followersIterator while followersIterator<=followersSize
{
	set userName = issueFollowers->GetItem(followersIterator)
	Trace (1, "follower is : " + userName)
}

set followersUGIterator = 1

for followersUGIterator while followersUGIterator<=followersUGSize
{
	set group = issueFollowersUG->GetItem(followersUGIterator)

	set groupURI = group.getURI()
	Trace (1, "follower UG URI is : " + groupURI)
	
	set groupMembers = group.getUsers()
	set groupMembersSize = groupMembers.Size()
	
	if(groupMembersSize <> 1)
	{
		Trace (1, "Incorrect number of members in Group: " + groupMembersSize)
		Validation = false
	}
}

/* Affected Item */
set affectedItems = ThisObject.getAffectedItems()
set affectedItemsSize = affectedItems.Size()

if(affectedItemsSize <> 1)
{
	Trace (1, "Incorrect number of affected items: " + affectedItemsSize)
	Validation = false
}

set affectedItemsIterator = 1

for affectedItemsIterator while affectedItemsIterator<=affectedItemsSize
{
	set affectedItem = affectedItems->GetItem(affectedItemsIterator)
	set resources = affectedItem.getPointedResources()
	set resourcesSize = resources.Size()
	
	if(resourcesSize <> 1)
	{
		Trace (1, "Incorrect number of resources in affected item: " + resourcesSize)
		Validation = false
	}
}

/* Context Item */
set contextItems = ThisObject.getContextItems()
set contextItemsSize = contextItems.Size()

if(contextItemsSize <> 1)
{
	Trace (1, "Incorrect number of context items: " + contextItemsSize)
	Validation = false
}

set contextItemsIterator = 1

for contextItemsIterator while contextItemsIterator<=contextItemsSize
{
	set contextItem = contextItems->GetItem(contextItemsIterator)
	set resources = contextItem.getPointedResources()
	set resourcesSize = resources.Size()
	
	if(resourcesSize <> 1)
	{
		Trace (1, "Incorrect number of resources in context item: " + resourcesSize)
		Validation = false
	}
}

/* Resolution Item */
set resolutions = ThisObject.getResolutionItems()
set resolutionsSize = resolutions.Size()

if(resolutionsSize <> 1)
{
	Trace (1, "Incorrect number of resolution items: " + resolutionsSize)
	Validation = false
}

set resolutionsIterator = 1

for resolutionsIterator while resolutionsIterator<=resolutionsSize
{
	set resolution = resolutions->GetItem(resolutionsIterator)
	set resources = resolution.getPointedResources()
	set resourcesSize = resources.Size()
	
	if(resourcesSize <> 1)
	{
		Trace (1, "Incorrect number of resources in resolution item: " + resourcesSize)
		Validation = false
	}
}

/* ResolvedBy Item */
set resolvedBys = ThisObject.getResolvedByItems()
set resolvedBysSize = resolvedBys.Size()

if(resolvedBysSize <> 1)
{
	Trace (1, "Incorrect number of resolved by items: " + resolvedBysSize)
	Validation = false
}

set resolvedBysIterator = 1

for resolvedBysIterator while resolvedBysIterator<=resolvedBysSize
{
	set resolvedBy = resolvedBys->GetItem(resolvedBysIterator)
	set resources = resolvedBy.getPointedResources()
	set resourcesSize = resources.Size()
	
	if(resourcesSize <> 1)
	{
		Trace (1, "Incorrect number of resources in resolved by item: " + resourcesSize)
		Validation = false
	}
}