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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

MKS field filled by java API

ptc-5385228
1-Newbie

MKS field filled by java API

Hi,

It is possible to fill a field with text from mks window using the java API. The ideea is to call an addon which put some text into a field, egg. "Description" from Create OpenIssue window or any other. The addon is based on MKS Java API.

Thank you for your support.

1 ACCEPTED SOLUTION

Accepted Solutions

This is possible providing the following assumptions are true:

  1. The item edit operation is initiated through the Java API (eg. user could click a custom button which calls your custom app and that initiates the edit)
  2. A local integration point is used
  3. The Java integration exists on the user's machine (this won't work from a trigger script)
  4. The user must have the Integrity Client installed

Essentially, you would create the editissue API Command with the Option to set the field value of the Description field and also with the "gui" Option. Since the "gui" Option is used, the item edit will be presented to the user in a regular edit window with the Description field prepopulated. The field values that are set by the Java API are only saved if the user clicks OK or Apply and those field values can also be changed by the user (assuming proper editibility permissions etc.).

Please see the Integrations Builder Guide for more details.

Regards,

Dan Rusu

View solution in original post

2 REPLIES 2

This is possible providing the following assumptions are true:

  1. The item edit operation is initiated through the Java API (eg. user could click a custom button which calls your custom app and that initiates the edit)
  2. A local integration point is used
  3. The Java integration exists on the user's machine (this won't work from a trigger script)
  4. The user must have the Integrity Client installed

Essentially, you would create the editissue API Command with the Option to set the field value of the Description field and also with the "gui" Option. Since the "gui" Option is used, the item edit will be presented to the user in a regular edit window with the Description field prepopulated. The field values that are set by the Java API are only saved if the user clicks OK or Apply and those field values can also be changed by the user (assuming proper editibility permissions etc.).

Please see the Integrations Builder Guide for more details.

Regards,

Dan Rusu

Thank you for the solution.

I look for a solution to made this with a window initiated by MKS client and then call the addon to fill a specific field, but i guess i can manage this with your solution.

Top Tags