Closed iswark closed 4 years ago
The mentions link is not directly supported because it is internally implemented when certain things are mentioned in the description or comments. I suspect the reason it is "dirty" is because a save operation was executed even though nothing was changed. You would have to look at the history of the work item to see what actually happened. Kirk WoodsSenior Managing ConsultantCognitive Applications Expert Lab Services+1 (816) 977-4781 Mobile ----- Original message -----From: iswark notifications@github.comTo: jazz-community/work-item-command-line work-item-command-line@noreply.github.comCc: Subscribed subscribed@noreply.github.comSubject: [EXTERNAL] [jazz-community/work-item-command-line] @link_mentions type link is not added in Work Item Command Line tool 5.2 in ELM 6061 (#29)Date: Mon, Jun 1, 2020 12:13 AM When I run a command similar to the below, it makes the Web UI dirty for the work item, indicating some change has happened, but I don't see any link created. There is no error.wcl -update repository="https://clm.testenvironment.com:9443/ccm" user=xxxx password=yyyy id=129 @link_mentions:add=85 If I change that command to a different link type: wcl -update repository="https://clm.testenvironment.com:9443/ccm" user=xxxx password=yyyy id=129 @link_depends_on:add=85 It works as expected. —You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.
@kirkwoods explanation makes a lot of sense. Please note that I don't make a difference in the code. The code does try to create the mentions link using the same code that is used for any other work item to work item link. Apparently the server does not allow to create that link type. The work item is saved, which is why the refresh is triggered, but there is no change done in the work item and also no new history record created.
@iswark sorry, but it appears that the mentions link can only be exported/read, but not be created like other link types. To get a mentions link, it appears you have to create a comment that mentions the work item. Can I close this request?
Note that a mentions link can also point to a user, which I think is not handled in my code at all.
OK. It might be good to indicate in the help somewhere that you cannot create the mentions link except by adding a comment etc.. Thanks.
I updated the readme.md and the internal documentation.
When I run a command similar to the below, it makes the Web UI dirty for the work item, indicating some change has happened, but I don't see any link created. There is no error. wcl -update repository="https://clm.testenvironment.com:9443/ccm" user=xxxx password=yyyy id=129 @link_mentions:add=85
If I change that command to a different link type:
wcl -update repository="https://clm.testenvironment.com:9443/ccm" user=xxxx password=yyyy id=129 @link_depends_on:add=85
It works as expected.