Issue's field "Affected Versions" doesnt update via REST API

Hello,

We changed custom field "Affected Versions" to String type and use this REST request http://confluence.jetbrains.net/display/YTD3/Create+New+Issue and parameter "affectsVersion" that passing to request, but it is always default "No Affected versions". In previous EAP versions it works fine.

What's wrong?

Thank you.



Attachment(s):
custom-fields.JPG
issue-sample.JPG
6 comments
Comment actions Permalink

Hello Alexander,

As I understandm, you mean that this field did not set on issue creation, right?

I can't reproduce it now.

What exact build do you use now?

What message do you recieve from YT in your script?

Sergey.

0
Comment actions Permalink

Request:

/rest/issue?project=DF&summary=new+issue&description=description+of+new+issue&affectsVersion=2.0

Response:

<issue priority="3" type="Bug" state="Submitted" id="DF-4533" projectShortName="DF" reporterName="santer" updaterName="santer" fixedInBuild="Next build" commentsCount="0" numberInProject="4533" summary="new issue" description="description of new issue" created="1309176724424" updated="1309176724425" historyUpdated="1309176724425" votes="0">

<links />

<attachments />

<field name="Quantity" />

</issue>

Custom field settings and issue in attachment.



Attachment(s):
custom-field.JPG
issue.JPG
0
Comment actions Permalink

Do you have "2.0" added into versions bundle?

0
Comment actions Permalink

No, we use Custom Field "Affected versions" with String type.

0
Comment actions Permalink

Hello, Alexander.

Now you can pass "Affecetd versions" as request parameter only if you use some field with bundle. If your field has string type, you should set it as other custom fields -- using commands. Here is a documentation about htis rest method: http://confluence.jetbrains.net/display/YTD3/Apply+Command+to+an+Issue . Also, we have an issue about passing all issue attributes in xml, so you can vote for it: http://youtrack.jetbrains.net/issue/JT-10043

0

Please sign in to leave a comment.