I'm using the Jira (version 5) Rest API to Delete a version and like the documentation tell me, I pass the moveFixIssuesTo and moveAffectedIssuesTo to transfer issue from the deleted version to a other version. This just doesn't work. The issues that has AffectedVersion / FixVersion set to the deleted version have no version after the delete.
/rest/api/2/version/{id}?moveFixIssuesTo&moveAffectedIssuesTo
Here an example of the call :
http:// /rest/api/2/version/16238?16237&16237
My {id} is an existing versionId I want to delete.
moveFixIssuesTo and moveAffectedIssuesTo are versionId of the version I want the issues to be transfer.
If I do the same kind of action from the Web UI of Jira ( Deleting a version and setting in the form the version to transfer the AffectedVersion and FixVersion, It work correctly and I see the new version in the field of the issues.
Any idea why this does not work as expected ?
I think if you changed implementation of service operation - you must use another url for this operaton. For this thing you can change value of attribute version in rest tag in the file atlassian-plugin.xml:
<rest name="My Rest Resource" key="custom-rest-resource" path="/my-custom-resource" version="1.0"/>
Related
REcently upgraded my springcloud data flow version and I cant configure the trigger sources.
2.1.0 version
I cant configure it now... any help please ?
Thanks!!
The application properties were removed in favor of common spring integration properties. We will look into adding these to the property dialog. Meanwhile, you should be able to manually type them into the stream definition or set as deployment properties. https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/integration/IntegrationProperties.java#L325 e.g., --spring.integration.poller.fixedDelay=2000
I am pulling a file from on premise TFS source control using the Rest API. I can't find on premise specific documentation, but it seems to be very close to version 4.1 of the Azure Get Item call. According to this documentaiton, it should return a TfvcItem object which has a lot of metadata including the version. However, when I make the call it only returns the file contents (the content field of the documentation's TfvcItem).
How do I get the current version of the file?
I need the version when I check itin with create changeset. I don't need it for any other reason, so if you know another way to check in an edited file that would help.
Instead of using Get Item API, some related REST APIs are not documented. For these REST APIs we can use tools such as Fiddler or directly press F12 - network in Chrome to track them.
You should use below API to fetch latest changeset version of a file:
post https://dev.azure.com/{organizationname}/{Projectname}/_api/_versioncontrol/history?__v=5
For body:
{"repositoryId":"","searchCriteria":"{\"itemPath\":\"$/MyFirstProject/Main/1.txt\",\"itemVersion\":\"T\",\"top\":50}"}
itemPath is your server path of the file.
From the response, you will get the version info such as "version": "139", instead of the file content.
Not sure your detail version of TFS, I was using Azure DevOps Service for an example. There maybe some difference for different TFS version. You could track the detail API on your own side.
More detail info kindly take a look at this question: VSTS Release API Documentation
Had the same issue. You can get item metadata by specifying "scopePath" URI parameter, instead of "path". Microsoft example in API documentation seems incorrect, as it indeed returns only item content: https://learn.microsoft.com/en-us/rest/api/azure/devops/tfvc/items/get?view=azure-devops-rest-6.0#get-item-metadata-and/or-content-for-a-single-item.
I have a 2016 access file, when I try to access this file with an SQL or Access datasource in visual studio I get the following error message:
Database schema could not be retrieved for this connection. Please make sure the connection settings are correct and that the database is online.
The database you are trying to open requires a newer version of Microsoft Access
I checked my database and I don't have any Large Number in it so I'm not sure what exactly is the problem.
It was working fine before I did some changes with a few Date/Time data type but I since changed all the Date/Time to Short Text. I'm not certain if it has any relation to the error message but it was the only change I've made before the error.
Can anyone help?
I had this problem and its stems from the use of new data fields.
Eliminating them alone did not do the trick. When you use one of the new field types it steps the version up to 16.7, which is not compatible with earlier access versions.
Note that you can get the version number with ? Currentdb.Version in the immediate window
I had to run the compact and repair routine in order to get the version to step down.
We are following the link: https://www.visualstudio.com/en-us/docs/integrate/api/wit/recycle-bin in order to retrieve the work items in recycle bin using TFS Rest Api, but this doesn't seem to work.
Url format contains the "project" variable but the example url does not follow the same:
GET https://{instance}/DefaultCollection/{project}_apis/wit/recycleBin?api-version={version}
https://fabrikam-fiber-inc.visualstudio.com/DefaultCollection/_apis/wit/recyclebin?api-version=1.0
The above request url points to version 1.0 but the link recommends version 3.0 which is confusing.
What is the correct url in order to fetch work items in Recycle bin,is there any other alternate way to achieve this.
Resolved the issue by passing the version as 3.0-preview and not 1.0 in the url.
http://tfsserver:8080/tfs/{Team Project Collection}/{Team Project}/_apis/wit/recycleBin?api-version=3.0-preview
While performing the checkin in sharepoint my file version is getting updated by 0.2 but it should be 0.1.
This is happening because after checkin i am uploading the edited file again which further increase the version number by 0.1.
How i can prevent the version update in case of uploading the edited file?.
i have used below method and in both case version is getting updated
case 1 /_api/web/getfolderbyserverrelativeurl('%#')/Files/add(url='%#',overwrite=true)
Method:POST
body:content of file
case 2
/_api/web/getfilebyserverrelativeurl('%#')/$value
Method:POST
body:content of file
Have you try check out/check in ?
First Check out your document.
Do all your update (field values, content of file)
After all your update, check in (major or minor version)
Your version should be upgrade once (you create new version when you check out only visible by you, you can work on you doc, when you check in the version is validate and all users can see it)