Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all 3432 articles
Browse latest View live

Traceability between PTC Integrity and Enterprise Architect

$
0
0

Hi,

 

we want to create a connection between Integrity Items from PTC and packages/ elements from Enterprise Architect. Both tools have IDs with which they can be identified clearly. In the forum I read that there are several possibilities to get data out of PTC Integrity such as using command line scripting, running reports, using gateways, web services, API or trigger scripts.

 

My question is, which of these possibilities would you suggest when you want to connect one integrity item with one or more Enterprise Architect package/s or element/ s. Is there a way using a standard feature of PTC Integrity which helps the developer to get that task done with less changes in Integrity or do you suggest a self-made program which writes in each tool the specific ID/s from the opponent's tool to help the user for example to find the suitable UML diagram in the Enterprise Architect for an already open requirement integrity item of PTC Integrity faster?

 

 

Thanking you in anticipation.

 

 

 

Regards

Dan


rest api field names case sensitive?

$
0
0

when working with the REST-API are field names case sensitive?

If so, how do I find out the proper casing?

 

bye

T

Do we have Integrity helpdesk in PTC?

$
0
0

Hi,

 

I'm working at PTC, and I have some questions re Integrity usage. Do we have any kind of internal corporate helpdesk for Integrity? My questions are better represented if illustrated with SPRs/stories that might contain sensitive info that's not OK to publish in an open community.

Pls contact me at akovtun@ptc.com .

 

Thx,

-andy

Ignore folders from current project/repository

$
0
0

Hi,

I am new to PTC Integrity Source Control.

Am used to Git/Svn, wherein I can specify an ignore file to ignore specific files/folders providing a pattern.

In my current project there are some files which are already checked in and as a part of restrucring, I want to ignore specific folders (obj, bin folders of a Visual Studio project). I am unable to figure out how to do it.

I tried the Sandbox -> View -> Non Member, but unable to see any items listed there.

 

Can anyone guide me as to how to ignore folders from an existing repository?

Thanks,

Chandu

Item field constraint based on children field values

$
0
0

I would like to create a constraint on an item based on the linked child items.

 

I have an item called "Project" that will have child items of "Task". Both of these items types have a state field and the same values like, "In Progress", "Ready For Review", "Complete", etc.

What I want to do is keep the user from changing the "Project"/parent item state to the next state if all the "Task"/child items are not in the right or same state. Once all the tasks are set to the right state I would like to allow the project item state to advanced. So, is this possible, and if so could someone point me to the right docs?

 

Visual example:

(T1)

     Project State:In Progress

          Children:

               Task 1 State:In Progress

               Task 2 State:In Progress

 

(T2) - Note that at this time the user would not be able to change the project state to the next state because all the tasks are not completed.

     Project State:In Progress

          Children:

               Task 1 State:Ready For Review

               Task 2 State:In Progress

 

(T3)

     Project State:In Progress

          Children:

               Task 1 State:Completed

               Task 2 State:Ready For Review

 

(T4) - Now the user can move the Project item state to Completed because all the children are in the correct state.

     Project State:In Progress

          Children:

               Task 1 State:Completed

               Task 2 State:Completed

 

(T5)

     Project State:Completed

          Children:

               Task 1 State:Completed

               Task 2 State:Completed

How to get non-members from a sandbox?

$
0
0

Hi,

I'm trying to print a list off all non-members within a sandbox into a textfile. I've tried 'si viewnonmembers' but got this error message in return:

 

MKS124814: Cannot show view information: MKS125335: Out of tree members and subprojects (not located in the project directory or a subdirectory of the project directory) are not supported.

 

The errormessage doesn't seem to fit my sandbox so I would be grateful if anyone has a clue what went wrong. By the way, if I am using the GUI (Sandbox -> Views -> view non-members)   this works fine.

 

Thanks!

Attempt to launch MKS Integrity client Timed out.

$
0
0

Hello,

This is my first time with MKS.  We are using MKS Integrity Client, most of us are using windows client.  I'm on a mac and would like to setup my development environment in a VM, preferably a linux flavor.  I'm currently using centos 6.5 32 bit.  Installation of mksClient.bin runs fine, but anything I try, I get the following error. 

 

./si gui

./si: Attempt to launch MKS Integrity Client Timed out. To solve this please try the following:

- Verify that the user you are logged in as has read and write permissions to the Integrity Client install directory.

- Make sure the Integrity Client install directory is the very first entry in the path.

 

I'm able to read/write in integrity client install directory, so that cannot be the issue.  I do not know how setting up path is of any relevance when starting up the client.  Could this be some kind of connection issue?  I'm able to launch web version, web services, etc. at the given host/ip:port.  Any pointers?

 

Best,

Srikrishna

Substitute Parameters with Excel Integration

$
0
0

How can I get a field to substitute parameters when pulling data through the Excel integration?


Issue with modifying Parameter Values after initially set

$
0
0

I have an issue with usage of Parameter Values.  When I enter a value for a specific item and then later go back to either modify the value or delete the parameter from the item, Integrity will not save the change and immediately reverts to the previous value when I refresh or select a different item.  Does anyone know why this is happening and how I might solve this issue?  The value is set within the item I have open and it is not a hierarchy issue.

how to develop a java plugin for IBPL-field-informations?

$
0
0

How can I get informations about the backing Type of an IBPL-field?

 

IBPL-Field Value

IBPL_Auswahlfeld.JPG

For each of this items I Need the Status of die Backing type which istheunderlyingfield:

IBPL_Backing_Type.JPG

Can anyone help me?


How to develop a java plugin for checkout operation with integrity

$
0
0

I am developing a Java plugin using plugins provided by integrity to communicate with Integrity.

I am able to connect to the server. I need some inputs regarding checkout process.

I got the below code when I searched. But I am not sure what parameters do I need to pass for this method.

configPath is either sandbox path or servers path?And please check the parameters mentioned whether I am giving the correct values or not?

And In my code I am using first argument as Session instead of APISession.

When Iam running it it is giving me the error Error occurred when running command: si: MKS124819: Invalid option: "server"”.

What are all the option values it accepts? Is it different for every command? Where can I found this information?

Please suggest me If i can develop in a different way also.

 

       /**

        * Performs a checkout of this Integrity Source File to a  working file location on the build server represented by targetFile

        * @param api Integrity API Session

        * @param configPath Full server side path for this Integrity member's project/subproject

        * @param memberID Full server side path for this Integrity member

        * @param memberRev Member revision string for this Integrity member

        * @param targetFile File object representing the target location for this file

        * @param restoreTimestamp Toggles whether or not the original timestamp should be used

        * @param lineTerminator Sets the line terminator for this file (native, crlf, or lf)

        * @return true if the operation succeeded or false if failed

        * @throws APIException

        */

       String configPath="mentioned server side path till .pj";

       File targetFile=new File("D:/Vasavi/test-generated ");

       String memberID="config.ini";

       String memberRev="1.10";

       booleanrestoreTimestamp=false;

       String lineTerminator="native";

       Response res;

       publicboolean checkout(APISession api,String configPath,String memberID,String memberRev,File targetFile,boolean restoreTimestamp,String                lineTerminator) throws APIException {

      

              System.out.println("In Checkout method");

            if (!targetFile.getParentFile().isDirectory()) {

              System.out.println("If block");

           targetFile.getParentFile().mkdirs();

           System.out.println("end of if block");

         }

       System.out.println("after if block");

         Command coCMD=new Command(Command.SI,"co");

         coCMD.addOption(new Option("nolock"));

         coCMD.addOption(new Option("server",configPath));

         coCMD.addOption(new FileOption("targetFile",targetFile));

         coCMD.addOption(new Option(restoreTimestamp ? "restoreTimestamp" : "norestoreTimestamp"));

         coCMD.addOption(new Option("lineTerminator",lineTerminator));

         coCMD.addOption(new Option("revision",memberRev));

         coCMD.addOption(new Option("changePackageId", ":none"));

         coCMD.addSelection(memberID);

        

         try{

         res=integrity.cr.execute(coCMD);

         }

catch (APIException e) {

System.out.println("Error occurred when running command: " + e.getMessage());

e.printStackTrace();

}

         if (res.getExitCode() == 0) {

           returntrue;

         }

        else {

           returnfalse;

         }

       }

Search All Items in MKS from CLI

$
0
0

I want to search all the items in MKS for a particular condition from command line interface. But, I'm not getting any such option. MKS CLI offers a command to view multiple items ("im issues") but it is asking for item id. I'm not sure how this command would return multiple items details as one item id can return only one item details.

 

I can search all the items without knowing the item id or run a query based on a condition using explorer GUI. So, just wondering why similar staff is not there in CLI. Please suggest if this can be achieved using CLI.

 

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

Best Regards

Sourav Das

Server Performance with API

$
0
0

We are having some problems with server performance when using the API. I don't know if it's due to the way I am using the API or some settings on the server or something else. We have several tablets running Windows 8.1. On each tablet, we have an app (written in C#) which downloads project data and allows us to execute our procedures offline. If only one tablet is downloading project data (and making API calls) then things seem to work fine. Once multiple apps try to download project data at the same time, everything slows down. Sometimes, one app might stop receiving downloading all together.

 

The way the app works is that I get the list of segments in a project using the code below. Then, I loop through the returned segments and make a new API call for each one to download the nodes. There doesn't seem to be any specific type of node or node content which causes things to slow down.

 

I am working adding some things into the app for the sake of debugging it to see if I can track down specifically what causes the slowdown. Has anyone seen similar issues where API calls from multiple sources leads to server slowdowns?

 

        public List<Segment> GetProjectSegments(string Project)        {            List<Segment> allSegments = new List<Segment>();            try            {                // Get all of the approved segment types from the approvedTypes array                // and convert them to a string for the query definition.                string approveString = "(field[Type]=" + approvedSegmentTypes[0] + ")";                for (var i = 1; i < approvedSegmentTypes.Length; i++)                {                    approveString += " or (field[Type]=" + approvedSegmentTypes[i] + ")";                }                // Define the query definition and the requested fields to return.                string queryDef = "((field[Project]=" + Project + ") and (item.live) and (" + approveString + "))";                string fields = "ID,Project,Type,Assigned User,Summary,State";                Command cmd = new Command("im", "issues");                cmd.AddOption("hostname", hostServer);                cmd.AddOption("port", hostPort.ToString());                cmd.AddOption("user", userName);                cmd.AddOption("password", userPassword);                cmd.AddOption("queryDefinition", queryDef);                cmd.AddOption("fields", fields);                if (!APIFactory.IsInitialized)                    APIFactory.MKSInitialize();                IIntegrationPoint ip = APIFactory.CreateIntegrationPoint(hostServer, hostPort, false, 4, 13);                ISession s = ip.CreateSession(userName, userPassword);                ICmdRunner cr = s.CreateCmdRunner();                IResponse r = cr.Execute(cmd);                foreach (WorkItem w in r.WorkItems)                {                                       int f0 = (int)w.Fields["ID"].Value;                    var fi1 = (MKS.ManagedAPI.Item)w.Fields["Project"].Value;                    string f1 = (fi1 == null ? string.Empty : fi1.Id);                    var fi2 = (MKS.ManagedAPI.Item)w.Fields["Type"].Value;                    string f2 = (fi2 == null ? string.Empty : fi2.Id);                    string f3 = w.Fields["Summary"].Value.ToString();                    var fi4 = (MKS.ManagedAPI.Item)w.Fields["State"].Value;                    string f4 = (fi4 == null ? string.Empty : fi4.Id);                    var fi5 = (MKS.ManagedAPI.Item)w.Fields["Assigned User"].Value;                    string f5 = (fi5 == null ? string.Empty : fi5.Id);                    allSegments.Add(new Segment                    {                        UId = f0,                        ProjectName = f1,                        ItemType = f2,                        Summary = f3,                        State = f4,                        AssignedUser = f5                    });                }                cr.Dispose();                s.Dispose();                ip.Dispose();            }            catch (APIException e)            {                throw e;            }            finally            {                //APIFactory.Instance.Shutdown();            }            return allSegments;        }

what is a build sandbox

$
0
0

I come from the Microsoft TFS world, and now i'm obviously working with Integrity. In TFS if you needed to setup CI for a branch you just created a build definition and linked it to the branch, and every time someone checked in a file a build would start.

 

I see that Integrity seems to have a couple different branching concepts. One of these branch types is a build branch. What is this build branch and why would I want one?

viewcps should return Change package details which are associated with CR, Defact and Task

$
0
0

Hi,

I have written a code that is returning all Change Packages those are assigned to me and in 'Open' state. But my requirement is code should return all Change Packages those are assigned to me,in  'Open' state and issue type should be Change Request, Defect and/or Task only.

 

Please help me with this.

 

Code block:

public Command getCommand() {        Command cmd = new Command();        cmd.setApp(Command.SI);        cmd.setCommandName("viewcps");        cmd.addOption(new Option("filter", "user:" + username));        cmd.addOption(new Option("filter", "state:" + "Open"));        return cmd;    }

 

Generated command:

si viewcps --filter=user:<userid> --filter=state:Open --

 

Kindly help.

 

Thanks,

Gajanan


Can PTC Implementer 2009 run on i5/OS V7R1 ?

$
0
0

I need to upgrade to i5/OS V7R1 and am in the planning stage.

 

Currently MKS Implementer 2009 is running on V6R1 on the i5 and I was wanting to leave the Implementer upgrade until after the Operating System upgrade but obviously need to know if Implementer 2009 was supported for V7R1 or if I absolutely need to upgrade Implementer first.

 

I've spent over an hour trawling through the PTC site to find the answer, with no luck so I hope you guys can help.

Is a way to create a sandbox in a (build) subsandbox?

$
0
0

I have a project that contains multiple modules, that are shared subprojects.
We want to create our work environment like this:
-create a build sandbox from a specific project checkpoint (release)

-create a normal sandbox for the module - and do here the modification, then checkpoint the module.

 

To compile the project, the module has to be inside it (it's not working with linked folder).

 

Because we cannot configure the shared subproject to his Mainline, because the sandbox is build, we would like the create the module sandbox in the module location inside the build sandbox.

 

Is there a way to do this? Or, do you have other ideas/solutions ?

 

Thanks,

Ana

'si connect' hangs when client is not connected to server

$
0
0

I am working on a script with PTC Integrity interactions. To be sure the IntegrityClient is running, I call 'si connect' first:

si connect --gui --hostname=someserver.domain.org --port=1234

 

  1. In case the client is not running, it is started and the user is prompted for username and password => OK
  2. In case the client is running, the command just returns => OK
  3. When the client is running, but it is currently not connected - red exclamation mark next to 'user@server:port' in the status bar - then the command hangs infinitely => BAD

 

I also tried the command in batch mode, which I usually use to check if the client is running but prevent from starting if not, has the same behavior:

si connect --batch

 

When I go to the IntegrityClient window and get the connection up again, by just clicking to any sandbox member, the commands work properly again.

 

Is there an option for 'si connect' or another command, which I didn't see, to force the re-connection of the IntegrityClient without blocking the execution of a script?

Export reports Microsoft Excel

$
0
0

HI,

 

I have few report in MKS 2007. Whne i run those reports in IE 7 or 8.0 and try to export it by right clicking on the report, followiing error is returned:

 

The user name and password associated with the current HTTP request do not match those associated with the current session. Click the following link to go to the main view

 

Could you please help.

oxygenXML editor - PTC integration

$
0
0

Can we integrate oxygenXML editor with Integrity?

Viewing all 3432 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>