Edit Pull Request comment for other users - azure-devops-rest-api

We recently moved our Azure DevOps Server instance to another server, changing its public URL.
Because of this, any links/images in Pull Request comments are still pointing to the old URL.
I have written C# code to use the API to change the comments (UpdateCommentAsync), but it gives me the error:
Cannot update comment. Only the comment author and project admins can edit a comment.
But I am a project admin, and it still does not work...
Is this a bug, or do I have to set some property to override this behavior?
Using Microsoft.TeamFoundationServer.Client, 16.183.0-preview

Thanks Stein's feedback. This issue can be reproduced and temporarily we can edit the comments directly in the Azure DevOps database as a workaround. Posting it here so others also could follow this thread: https://developercommunity.visualstudio.com/t/Unable-to-edit-comments-in-Pull-Request/1376731 to get latest feedback from product support team.

Related

Jira: Adding a Link to in issue doesn't work for a project

I've been using Jira recently and I came across a problem that I don't know how to fix it.
I have to Jira instances. when I try to link an issue to one on the other instance it doesn't link. It used to work but now it won't.
every time I try to link it I will get this even though for other projects it wasn't needed :
and when press authenticate I get this page:
afterward, when I press the link nothing changes.
Please if you are familiar with this problem help me.
afterward, when I press the link nothing changes.
I tried to link the other way and it's working but I still can't identify where the problem is.
Please if you are familiar with this problem help me.
It's all about Application Links.
Some server changes (like reverse proxy, update in web.xml, etc.) or changes in the admin user account may break the links.
You need the check Application Links between two instances; if there is a problem, try to solve that first.
If not, remove the application link from both instances and add it again.
By the way, if the users in the two Jira instances are same, enable the "OAuth" in the application links (and also be sure that the admin account is same on these two instances.)
Sources:
Linking issues
Application Links

Create JIRA issue from SharePoint using Logic apps

I want to create a JIRA issue using Logic Apps when a row is inserted into a SharePoint online list. I've authenticated myself, but am getting this error. The main part of the message reads as follows:
Field ‘reporter’ of type ‘user’ is not supported. More diagnostic information: x-ms-client-request-id is ’71…’
The Logic App action is "create a new issue V2". The previous version seems to work OK, but has been deprecated.
The SharePoint list also has some rich text fields. Will I be able to upload them? Looking at the JIRA connector documentation I suspect not, but would like to check.
To resolve this, you need to remove the 'reporter' field from the JIRA Issue Type you are using in the Create a new issue task in Logic Apps.

Adding TFS tasks (work item) via url

Currently i'm trying something out with TFS 2015. I red that it should be possible to add tasks (work-items) via the browser url. This is perfect for me if it is working like I expected :)
My current url (personal items removed)
https://{myurl}/tfs/DefaultCollection/{project}/_workItems#_a=new&witd=Task&[Title]=Do
this&[Original Estimate]=1&[Remaining
Work]=1&[??????PARENT?????]={??id??}&[System.AreaPath]={project}&[System.IterationPath]={project+iteration}
So far so good it's possible to add an item via the url, but I couldn't figure out how to add the parent link to the work item!
I've tried [Node Name], [Parent], [System.NodeName], but none of them worked.
Does anyone have an idea how to create the link? Or is it not possible?
tnx in advance
Try to use [System.Linktypes] or [System.LinkTypes.Hierarchy-Reverse]
Moreover, suggest you to use REST API just as debugthings mentioned. Work Items|Rest API If you haven't already, look at the information on getting started with these APIs.

Asana API retrieve project owner, status and deadline

Is there a way using the Asana api to retrieve the project owner, project status, project description and project deadline?
I checked the API docs and could not find anything, so I am assuming the answer is no (but confirmation is much appreciated).
https://asana.com/developers/api-reference/projects#sections
If there is not a way of doing this via the API, does anyone have any hacks on how to do this using something like Selenium or another tool?
Much appreciated.
Project overview attributes are accessible attributes on project objects in the API.
current_status is the latest status update for the project including the color and text associated.
owner the current project owner.
due_date the current project due date.

Flickr background download session failed: You do not have permission to access the requested resource

I have a school assignment where I need to use this project: http://web.stanford.edu/class/cs193p/cgi-bin/drupal/system/files/sample_code/Photomania_2.zip
When I first downloaded it, it worked fine. I was working on it one day, when I got this message: "Flickr background download session failed: You do not have permission to access the requested resource."
I didn't know how to fix it, so I went back and downloaded it again to see if I did something to the code that caused that I got that error. When I downloaded a fresh copy of the photomania application, I would yet again get that error.
Does anyone know how to fix this?
Did it stop working on June 27th? The Flickr API went SSL-only on that day. That project probably needs its API endpoints updating to use SSL. I'd ask your tutor about that. Or just try updating all the API endpoints you can find to use the appropriate https: equivalents, as described in that blog post.
I just encountered the same problem. Matt hit the nail on the head. Make sure you add in your API key and do a find/replace to make all "http:" references "https:".

Resources