cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Query to get history of Change Notice, like Created by, Number,Activity name, Assigned to, Reassigned to,

vuchekar
9-Granite

Query to get history of Change Notice, like Created by, Number,Activity name, Assigned to, Reassigned to,

Hello All,

I am trying to build a report using Query Builder to Fectch history of change Notice like, Name, Activity, Created on, Completed on, Assigned to User,if it is Reassigned, Reassigned User, Vote etc.

Presently i am able to able to fetch details like name, Activity, Created on, Completed on, Assigned to user, if it is Reassigned (Yes or No).

but i am not able to get Reassigned user name, how i will get this.

Here is format of my desired output.

Change Notice NumberCreated onActivity NameRoleAssigned toReassignedReassigned to User


12310/10/14xxxxxxxAssigneeabcyesxyz


12412/10/14yyyyyyyAssigneebobno



Please, guide us to solve this requirement.

Thanks,

Vivek

3 REPLIES 3

Vivek,

take a look at this article I wrote http://communities.ptc.com/docs/DOC-6348

There is a lot of useful things about reporting with query builder and a section with some report on Change Management.

Hope you can find what you are looking for.

Marco

Hello Marco Tosin,

I have go through link provided by you.

I am able to fetch some data, not all, Please let us know how i can get this as below,

My Change Notice Page,

1_new.jpg

2.jpg

I want to fetch data from Task for change process table and process Status table as shown on page.

I am able to fetch the data from "tasks for change process", but not able to find data from "Process Status " table.

Here is report output for above change notice, we will notice that fields from "Process Status " tables are missing in reports.

Report.jpg

Please let us know, how i can include this additional data to report.

Here is my qml file,

----------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE qml SYSTEM "/wt/query/qml/qml.dtd">

<qml>

<statement>

<query>

<select>

<column

alias="Change Notice (wt.change2.WTChangeOrder2)"

heading="Number" propertyName="number" type="java.lang.String">master&gt;number</column>

<column

alias="Change Notice (wt.change2.WTChangeOrder2)"

heading="Name" propertyName="name" type="java.lang.String">master&gt;name</column>

<object

alias="Change Notice (wt.change2.WTChangeOrder2)"

heading="Version" propertyName="versionInfo.identifier.value">

<property name="versionInfo">

<property name="identifier">

<property name="value"/>

</property>

</property>

</object>

<column alias="Work Item" heading="Role"

propertyName="role" type="wt.project.Role">role</column>

<column alias="Wf Assigned Activity"

heading="Wf Assigned Activity Name"

propertyName="name" type="java.lang.String">name</column>

<object alias="Work Item"

heading="Ownership.Owner.Full Name" propertyName="ownership.owner.fullName">

<property name="ownership">

<property name="owner">

<property name="fullName"/>

</property>

</property>

</object>

</select>

<from>

<table alias="Work Item">wt.workflow.work.WorkItem</table>

<table alias="Change Notice (wt.change2.WTChangeOrder2)">wt.change2.WTChangeOrder2</table>

<table alias="Change Task (wt.change2.WTChangeActivity2)">wt.change2.WTChangeActivity2</table>

<table alias="Wf Assigned Activity">wt.workflow.work.WfAssignedActivity</table>

<table alias="Wf Assignment">wt.workflow.work.WfAssignment</table>

</from>

<linkJoin>

<join name="wt.change2.IncludedIn2">

<aliasTarget alias="Change Notice (wt.change2.WTChangeOrder2)"/>

<aliasTarget alias="Change Task (wt.change2.WTChangeActivity2)"/>

</join>

<join name="wt.workflow.work.WorkItemLink">

<aliasTarget alias="Wf Assignment"/>

<aliasTarget alias="Work Item"/>

</join>

<join name="wt.workflow.work.ActivityAssignmentLink">

<aliasTarget alias="Wf Assigned Activity"/>

<aliasTarget alias="Wf Assignment"/>

</join>

</linkJoin>

<referenceJoin>

<join name="primaryBusinessObject">

<aliasTarget alias="Work Item"/>

<aliasTarget alias="Change Task (wt.change2.WTChangeActivity2)"/>

</join>

</referenceJoin>

</query>

</statement>

</qml>

---------------------------------------------

Thanks,

Vivek

Hi Vivek,

Did Marco's article give you the information you needed to write the query? Let us know if you need further assistance.

Announcements

Top Tags