can we replace issue id with our own defect tracking (ClearQuest) id? please advice how if we can.
I'm using Create Issue REST API in C#. I'm able to create issue with api, just like to know if it's possible we can replace the pre-assign issue id with our ClearQuest id.
Thanks.
Community moderators have prevented the ability to post new answers.
Volodymyr,
we are able to interface between JIRA issues and our ClearQuest system. do you have any suggestion how do we do this? create a custom field and store the clearquest id in it or something else?
Please advice. Thanks.
Andy
That's the standard way to do it - Custom field with the CQ ID in it. Ideally, CQ should have a field with the JIRA Key in it too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As always, Nic is absolutely right :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess you two are top jira developers Sorry, one more question I had used the string data = "{\"fields\":{\"project\":{\"key\":\"CQT\"},\"summary\":\"Sample issue\",\"description\":\"Creating an issue via REST API\",\"issuetype\":{\"name\":\"Bug\"}}}"; to test my create issue without any issue. now I tried to add one simple assignee field in the string. "{\"fields\":{\"project\":{\"key\":\"CQT\"},\"summary\":\"CDTS00416494 CUSP - Error on Page on KYC pop up- Bank locator\",\"description\":\"CDTS00416494 CUSP - Error on Page on KYC pop up- Bank ocator\\n\\r\",\"issuetype\":{\"name\":\"Bug\"},\"assignee\":\"andykuan\"}}" I got "The remote server returned an error: (400) Bad Request." Can you tell where I did wrong? Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not so much of a developer - I've written stuff, but nothing huge, my area is admin and the human side of using JIRA (for <mumble> years). I get the impression Volodymyr is probably ahead of me on development, as he's picked up some of the more technical stuff! Anyway, two things: First, I'm not sure about the punctuation in the second request - are the brace pairs all closed off correctly? Second, is andykuan a valid assignee for the project? (i.e. could you assign yourself the issue if you do this issue create using the UI?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
andykuan is my Jira id and I can create issue by using UI and assign to myself. the first string worked. I just appended the assignee field in the end on second test string. is "assignee" a valid field name? JIRA REST API is so hard for debugging, I have no clue where the error is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, it's not possible. Issue IDs are generated sequentially.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Andy,
Priority JSON:
"priority" : {"name" : "High"}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what can I say? you did it again. it worked. Sorry, one more question, can you please tell me the Affected Version field name and the JSON syntax too? thank both of you so much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Andy, updated the answer with JSON for the Affected Version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Field name is "versions" and JSON is in the answer. Also the field is not a "text field" but rather "multi select versions" field. Added image illustrating this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome, Sir :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Volodymyr, Sorry, one more question, can you please tell me the "Priority" field name and JSON string syntax like "versions"? appreciated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, one more question, do I need to take care email notification by API if I used REST API create issue? I got email notification if I create issue from UI but I didn't receive email if I used API create issue. many thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure, but guess that you get emails when the issue is assigned to you. Try to put yourself as assignee when creating through REST.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess that's the way it is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.