Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
I am creating a story via the API
im createissue --user=nshaikh --port=7001 --hostname=integrity.ptc.com --type=Story --addRelationships=Epic:168598 --field=Description=This backlog to develop 3rd Party Adapters Automation. --field=Current Estimate=16 --field=Scrum Team=3rd Party Adapters WPD --field=QA Required=false --field=Story Type=Story --field=Acceptance Criteria=Planned automation work completed. --field=Primary Segment=PLM --field=Summary=[Auto] 3PWGM - Adapters Automation - 1508 --field=Assigned Users=nshaikh --field=Product Owners=youkim --field=Pubs Required=false --
this returns with error
Failed with exception: Could not save item: MKS124066: Field "Epic" does not exist.
com.mks.api.response.impl.XMLResponseImpl@1188e820
This was working before Integrity migrated to new version
what is the fix for this
Solved! Go to Solution.
I did some investigation and then came up with the solution
use "Backlog Item For" instead of Epic
eg.
im createissue --port=7002 --hostname=integritydev.ptc.com --type=Story --addRelationships="Backlog Item For":168598 --field=Description="This backlog to develop 3rd Party Adapters Automation." --field="Current Estimate"=16 --field="Scrum Team"="3rd Party Adapters WPD" --field="QA Required"="false" --field="Story Type"="Story" --field="Acceptance Criteria"="Planned automation work completed." --field="Primary Segment"="PLM" --field="Summary"="[Auto] 3PWGM - Adapters Automation" --field="Assigned Users"="nshaikh" --field="Product Owners"="youkim" --field="Pubs Required"="false" --field="Product Line"="Windchill Core"
IMHO the problem lies in "--addRelationships=Epic:168598"
As for the I10.6 CLI document this parameter is deprecated.
You should use "--addFieldValues=Epic=168598" instead
HTH
I tried via API doe snot work
I also tried via the im utility (see below)
D:\Program Files (x86)\Integrity\IntegrityClient10\bin>im createissue --user=nshaikh --port=7001 --hostname=integrity.ptc.com --type=Story --field=Epic=168598
Creating Story ...
*** Could not save item: MKS124066: Field "Epic" does not exist.
D:\Program Files (x86)\Integrity\IntegrityClient10\bin>
Hello Nazeer,
Could you provide the output of this command:
im viewtype --user=nshaikh --port=7001 --hostname=integrity.ptc.com Story
Specifically, what we're interested in here is whether the field Epic exists. Is Epic actually a type? If so, is item 168598 an item of that type? If so, is there a relationship field which connects a Story to an Epic? It is likely that relationship field's name which should be used in the place of Epic when using --addFieldValues=<RelationshipField>=168598.
Regards,
Kael
D:\Program Files (x86)\Integrity\IntegrityClient10\bin>im viewtype --user=nshaikh --port=7001 --hostname=integrity.ptc.com Story
*** MKS124295: This command requires Admin permission or Type Administrator access.
Hi,
you don't really read what Kael and Matthias wrote:
you need the addFieldValues option:
im createissue --addFieldValues="Epic"=168598
Nazeer,
Was Tobias's answer helpful? If not, could you let us know what you feel is missing from the answer, or why the results weren't satisfactory? If it is, could you press the Correct Answer button on his post to let everyone know the solution to this problem?
No,
The issue is not resolved
As Kael suggested using the below command
im viewtype --user=nshaikh --port=7001 --hostname=integrity.ptc.com Story
gives me this error
*** MKS124295: This command requires Admin permission or Type Administrator access.
whereas using the command
im createissue --user=nshaikh --port=7001 --hostname=integrity.ptc.com --type=Story --addFieldValues=Epic=168598
gives me the error
Creating Story ...
*** Could not save item: MKS124066: Field "Epic" does not exist.
See attached video
With the previous Integrity version the below command worked fine
im createissue --user=nshaikh --port=7001 --hostname=integrity.ptc.com --type=Story --addRelationships=Epic:168598
but this also gives error as
Creating Story ...
Adding relationships ...
*** Could not save item: MKS124066: Field "Epic" does not exist.
please use im fields --gui to verify the correct field name of your "EPIC" relationship field.
I assume that EPIC is only the Display Name, which cannot be uses in the CLI.
D:\Users\nshaikh>im fields --gui
D:\Users\nshaikh>im fields
*** MKS124295: This command requires Admin permission or Type Administrator access.
My entire command is something like this (after removing relationships for epic)
but his also fails
im createissue --user=nshaikh --port=7001 --hostname=integrity.ptc.com --type=Story --field=Description=Test --field=Current Estimate=16 --field=Scrum Team=3rd Party Adapters WPD --field=QA Required=false --field=Story Type=Story --field=Acceptance Criteria=TestStory_delete --field=Primary Segment=PLM --field=Summary=TestStory_delete --field=Assigned Users=nshaikh --field=Product Owners=youkim --field=Pubs Required=false
im: MKS124822: Invalid value provided for "field": A property must have a value.
How can I know, which are fields for type story
Hello Nazeer,
As you mentioned this earlier,
As Kael suggested using the below command
im viewtype --user=nshaikh --port=7001 --hostname=integrity.ptc.com Story
gives me this error
*** MKS124295: This command requires Admin permission or Type Administrator access.
and this
D:\Users\nshaikh>im fields
*** MKS124295: This command requires Admin permission or Type Administrator access.
I would say that you need someone with on the AdminServer Access Control List to get this output for you, or you need to get your user ID placed on the AdminServer ACL so that you can run those commands. Anything other than that will just be a matter of shooting in the dark.
Regards,
Kael
I did some investigation and then came up with the solution
use "Backlog Item For" instead of Epic
eg.
im createissue --port=7002 --hostname=integritydev.ptc.com --type=Story --addRelationships="Backlog Item For":168598 --field=Description="This backlog to develop 3rd Party Adapters Automation." --field="Current Estimate"=16 --field="Scrum Team"="3rd Party Adapters WPD" --field="QA Required"="false" --field="Story Type"="Story" --field="Acceptance Criteria"="Planned automation work completed." --field="Primary Segment"="PLM" --field="Summary"="[Auto] 3PWGM - Adapters Automation" --field="Assigned Users"="nshaikh" --field="Product Owners"="youkim" --field="Pubs Required"="false" --field="Product Line"="Windchill Core"