Contributions
MIME attachment Field is required.
I am working on rest API to upload my issue on YouTrack. issue has been uploaded successfuly but for attachment i was failing so i decided to upload the attachment through importing the attachment in a created issue. it says MIME attachment Field is Required in response withstatus code 400. Help!808Views0likes1CommentRest API Request is empty
Dear all, this is a repeated question with some more things to ask, I have been working with the integration of TestComplete with YouTrack. so far i have been successful with creating a new issue in youtrack through a test run from testcomplete. however, the issue i am still facing is uploading the attachment along with creating the issue. any help would be great. the aqHttpRequest.set header has no effect in the response when checked in the log message. why is my request not being effected? also the user name and password is not working as well it creates the issue as aguest user even when i am giving it theuser name and password. below is my code: function httpPostRequest() { project=ABC&summary=new+issue&description=description+of+new+issue"; var address = "http://URL/rest/issue?project=ABC&summary=new+issue&description=Description+of+new+issue&attachment=D:\\Newfolder\\b.jpg"; var username = "user@abc.com"; var password = "userabc"; var requestBody = '1'; var aqHttpRequest = aqHttp.CreatePostRequest(address, username, password); aqHttpRequest.SetHeader("Content-Type", "application/json"); var aqHttpResponse = aqHttpRequest.Send() Log.Message(aqHttpResponse.StatusCode); // A status code Log.Message(aqHttpResponse.Text); // A body aqHttpResponse.SaveToFile("D:\\Postbody.txt"); } this creates the issue but does'nt upload the attachment.1.2KViews0likes2CommentsRest API Attachment issue:
Dear all, I have been working with the integration of TestComplete with YouTrack. so far i have been successful with creating a new issue in youtrack through a test run from testcomplete. however, the issue i am still facing is uploading the attachment along with creating the issue. any help would be great. below is my code: function httpPostRequest() { project=ABC&summary=new+issue&description=description+of+new+issue"; var address = "http://URL/rest/issue?project=ABC&summary=new+issue&description=Description+of+new+issue&attachment=D:\\Newfolder\\b.jpg"; var username = "user@abc.com"; var password = "userabc"; var requestBody = '1'; var aqHttpRequest = aqHttp.CreatePostRequest(address, username, password); aqHttpRequest.SetHeader("Content-Type", "application/json"); var aqHttpResponse = aqHttpRequest.Send() Log.Message(aqHttpResponse.StatusCode); // A status code Log.Message(aqHttpResponse.Text); // A body aqHttpResponse.SaveToFile("D:\\Postbody.txt"); } this creates the issue but does'nt upload the attachment.977Views0likes1Comment- 1.3KViews0likes0Comments
- 1.3KViews0likes2Comments
The window size is (401, 0);
I have a drop down but it does'nt filter the items filled in when writting text in. like i have a dropdown withYESandNOif i type yes it will only show meYESand so i press tab and it selectYES,but here i my case the dropdown is not being filtered it keeps showing all the values and so i cannot select my desired item. then i have a grid, when i select a record it gives its detail in another grid with edit template. so what it does normaly is selects the item by x and y axis the grid is popluated but when it clicks the grid it shows the ambigous error. it would be great if you help me out here ! Note that using the Key function wont help because itthe dropdownis not being filtered by the text i write.1.6KViews0likes5Comments- 2.5KViews1like1Comment