Microsoft list comment

%3CLINGO-SUB%20id%3D%22lingo-sub-1849008%22%20slang%3D%22en-US%22%3EMicrosoft%20list%20comment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1849008%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22lia-message-subject-wrapper%20lia-component-subject%20lia-component-message-view-widget-subject-with-options%22%3E%3CDIV%20class%3D%22MessageSubject%22%3E%3CDIV%20class%3D%22MessageSubjectIcons%20%22%3E%3CH1%20id%3D%22toc-hId-584851243%22%20id%3D%22toc-hId-584851274%22%20id%3D%22toc-hId-584851274%22%20id%3D%22toc-hId-584851274%22%20id%3D%22toc-hId-584851274%22%20id%3D%22toc-hId-584851274%22%20id%3D%22toc-hId-584851274%22%20id%3D%22toc-hId-584851243%22%3E%3CSPAN%20class%3D%22lia-message-read%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fsharepoint%2Fcomment-in-microsoft-list%2Fm-p%2F1845838%22%20target%3D%22_blank%22%3EComment%20in%20Microsoft%20List%3C%2FA%3E%3C%2FSPAN%3E%3C%2FH1%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22lia-message-body%20lia-component-message-view-widget-body%20lia-component-body-signature-highlight-escalation%20lia-component-message-view-widget-body-signature-highlight-escalation%22%3E%3CDIV%20class%3D%22lia-message-body-content%22%3E%3CP%3EHello%20MSFT%3C%2FP%3E%3CP%3EToday%2C%20I%20found%20that%20I%20am%20now%20able%20add%20comment%20in%20Microsoft%20list%20for%20one%20of%20my%20list.%20However%2C%20I%20am%20finding%20some%20issues%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3E1.%20After%20a%20comment%20is%20added%2C%20I%20dont%20see%20any%20icon%20on%20the%20quick%20view%20for%20the%20list%20item%20with%20comments.%20This%20is%20different%20from%20MSFT%20demo%2C%20there%20is%20no%20way%20for%20us%20to%20know%20which%20item%20has%20comment%20until%20we%20open%20one%20by%20one.%20--%20Update%20on%2011%2F3%2C%20however%20after%20I%20remove%20the%20column%20formatting%20on%20the%20title%20column%2C%20the%20comment%20icon%20is%20shown.%20Is%20there%20any%20way%20we%20can%20apply%20some%20sort%20of%20formatting%2C%20even%20just%20bold%20the%20text.%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E2.%20the%20comment%20is%20not%20viewable%20in%20Microsoft%20list%20in%20Teams.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPls%20help%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3ERyan%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1849008%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2018703%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20list%20comment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2018703%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F162506%22%20target%3D%22_blank%22%3E%40Jin%20Chen%3C%2FA%3E%26nbsp%3BI'm%20trying%20to%20figure%20out%20how%20to%20get%20the%20comments%20in%20Teams%20as%20well.%26nbsp%3B%20I'd%20like%20the%20users%20to%20be%20able%20to%20create%20and%20read%20comments%20without%20leaving%20the%20lists%20in%20Teams.%26nbsp%3B%20Have%20you%20received%20any%20feedback%20or%20have%20any%20learnings%20you%20would%20be%20willing%20to%20pass%20along%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2027594%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20list%20comment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027594%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F162506%22%20target%3D%22_blank%22%3E%40Jin%20Chen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20using%20below%20JSON%20code.%20It%20will%20bold%20the%20title%20text%20and%20show%20comments%20icon%20if%20there%20are%20any%20comments%20added.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%0A%20%20%22%24schema%22%3A%20%22https%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fcolumn-formatting.schema.json%22%2C%0A%20%20%22elmType%22%3A%20%22div%22%2C%0A%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%22class%22%3A%20%22ms-fontColor-themePrimary%20ms-fontSize-m%22%0A%20%20%7D%2C%0A%20%20%22children%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22elmType%22%3A%20%22span%22%2C%0A%20%20%20%20%20%20%22txtContent%22%3A%20%22%40currentField%22%2C%0A%20%20%20%22style%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22font-weight%22%3A%20%22bold%22%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%20%7B%0A%20%20%20%20%20%20%22elmType%22%3A%20%22span%22%2C%0A%20%20%20%20%20%20%22style%22%3A%20%7B%0A%20%20%22font-size%22%3A%20%2216px%22%2C%0A%20%20%20%20%20%20%20%20%22margin-left%22%3A%20%2210px%22%2C%0A%20%20%22display%22%3A%20%22%3Dif(%5B%24_CommentCount%5D%20%3D%3D%20'0'%20%2C%20'none'%20%2C%20'block')%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22iconName%22%3A%20%22Comment%22%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%5D%0A%7D%0A%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EMicrosoft%20documentation%3C%2FSTRONG%3E%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fdeclarative-customization%2Fcolumn-formatting%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EUse%20column%20formatting%20to%20customize%20SharePoint%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%20%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20to%20solve%20your%20issue.%20This%20will%20help%20others%20to%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20post%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2032335%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20list%20comment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2032335%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F899187%22%20target%3D%22_blank%22%3E%40MistyHill%3C%2FA%3E%26nbsp%3BI%20don't%20think%20currently%20it%20is%20possible%20to%20add%20comments%20in%20lists%20from%20Microsoft%20teams.%20Also%2C%20not%20possible%20to%20open%20comments%20pane%20by%20using%20JSON%20formatting.%20If%20you%20open%20the%20list%20form%20you%20can%20see%20the%20comments%20pane.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ENote%20from%20Microsoft%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Commenting%20in%20Microsoft%20lists.PNG%22%20style%3D%22width%3A%20575px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244249i9E1E020DFAF74E10%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Commenting%20in%20Microsoft%20lists.PNG%22%20alt%3D%22Commenting%20in%20Microsoft%20lists.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%20%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20to%20solve%20your%20issue.%20This%20will%20help%20others%20to%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20post%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hello MSFT

Today, I found that I am now able add comment in Microsoft list for one of my list. However, I am finding some issues:

1. After a comment is added, I dont see any icon on the quick view for the list item with comments. This is different from MSFT demo, there is no way for us to know which item has comment until we open one by one. -- Update on 11/3, however after I remove the column formatting on the title column, the comment icon is shown. Is there any way we can apply some sort of formatting, even just bold the text. 

2. the comment is not viewable in Microsoft list in Teams.

 

Pls help

 

Thanks

Ryan

4 Replies

@Jin Chen I'm trying to figure out how to get the comments in Teams as well.  I'd like the users to be able to create and read comments without leaving the lists in Teams.  Have you received any feedback or have any learnings you would be willing to pass along?

@Jin Chen 

 

Try using below JSON code. It will bold the title text and show comments icon if there are any comments added.

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "div",
  "attributes": {
    "class": "ms-fontColor-themePrimary ms-fontSize-m"
  },
  "children": [
    {
      "elmType": "span",
      "txtContent": "@currentField",
	  "style": {
        "font-weight": "bold"
      }
    },
	{
      "elmType": "span",
      "style": {
		"font-size": "16px",
        "margin-left": "10px",
		"display": "=if([$_CommentCount] == '0' , 'none' , 'block')"
      },
      "attributes": {
        "iconName": "Comment"
      }
    }
  ]
}
 

 

 

Microsoft documentationUse column formatting to customize SharePoint 


Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

@ganeshsanap thank you for the code.  It did change the format and add the icon, but there was no action when it was clicked.  With a double click, it opened the custom form.

MistyHill_0-1609780308891.png

I was hoping to have the "add comment" feature in the Teams view so users wouldn't have to open SharePoint

MistyHill_1-1609780561895.png

Is that possible?

 

@MistyHill I don't think currently it is possible to add comments in lists from Microsoft teams. Also, not possible to open comments pane by using JSON formatting. If you open the list form you can see the comments pane.

 

Note from Microsoft:

 

Commenting in Microsoft lists.PNG


Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.