Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No html content displayed in "Description" and "Comments" fields #494

Open
RealJTG opened this issue Nov 7, 2022 · 0 comments
Open

No html content displayed in "Description" and "Comments" fields #494

RealJTG opened this issue Nov 7, 2022 · 0 comments

Comments

@RealJTG
Copy link

RealJTG commented Nov 7, 2022

I have on-premise JIRA installation with JEditor plugin. "Description" and "Comments" fields contains HTML-formatted markup. Theese fields are displayed as empty in jira-cli.

Please provide following details

  1. JiraCLI Version:
    (Version="1.1.0", GitCommit="3b93e147eac468ad985bdece27469153b4bb2814", CommitDate="2022-08-14T08:10:40+00:00", GoVersion="go1.18.3", Compiler="gc", Platform="linux/amd64")
    
  2. Are you using Jira cloud or on-premise jira server? Also mention the version for on-premise installation.
    On-premise Jira v8.17.1
    
  3. What operating system are you using? Also mention version.
    Ubuntu 20.04.5 LTS
    Linux tp 5.8.0-55-generic #62~20.04.1-Ubuntu SMP Wed Jun 2 08:55:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
    
  4. What terminal are you using? Also mention version.
    xfce4-terminal 0.8.9.1 (Xfce 4.14)
    

To Reproduce

Steps to reproduce the behavior:

jira issue view PROJ-29269 --plain --debug

Expected behavior
I see text in issue title, "Description" and "Comments" fields.

Actual behavior
I see text only in issue title, but "Description" and "Comments" fields are empty (it's not black text on black etc., there are no content).

Screenshots
Screenshot_2022-11-07_14-25-19

Additional context

> jira issue view PROJ-29269 --plain --debug
Using config file: /home/***/.config/.jira/.config.yml
⠼ Fetching issue details...

REQUEST DETAILS
------------------------------------------------------------

GET /rest/api/2/issue/PROJ-29269 HTTP/1.1
Host: jira.local
Authorization: Bearer ***



RESPONSE DETAILS
------------------------------------------------------------

HTTP/1.1 200 
Transfer-Encoding: chunked
...


  ⭐ Задача  🚧 ForBuild  ⌛ Fri, 04 Nov 22  👷 ***  🔑️ PROJ-29269  💭 3 comments  🧵 0 linked            
                                                                                                                      
  # Hotfix ошибка переотправки пакета
                                                                                                                      
  ⏱️  Mon, 31 Oct 22  🔎 ***  🚀 High  📦 None  🏷️  3.2.7a, hotfix  👀 You + 1 watchers                   
                                                                                                                      
  ------------------------ Description ------------------------                                                       
                                                                                                                      
                                                                                                                      
                                                                                                                      
                                                                                                                      
  ------------------------ 3 Comments ------------------------                                                        
                                                                                                                      
  *** • Fri, 04 Nov 22 • Latest comment                                                                           
                                                                                                                      
                                                                                                                      
  Use --comments  with `jira issue view` to load more comments                                                        
                                                                                                                      
  View this issue on Jira: https://jira.local/browse/PROJ-29269

There are description and comment body in raw JSON:

> curl --request GET \
--url 'https://jira.local/rest/api/2/issue/PROJ-29269' \
-H 'Authorization: Bearer ***' 

{
    ...
    "fields": {
    ...      
        "comment": {
            "comments": [
                {
                    ....
                    "body": "<p>3.2.7a<br>\r\n<a href=\"https://***/-/commit/d38b9a41\">https://***/-/commit/d38b9a41</a>&nbsp;</p>\r\n",
                    ...
                },
                ...
            ],
            ...
        },
        ...
        "description": "<p>Precondition: в&nbsp;rt_msg для маршрута \"Основные параметры\" ... </p>\r\n",
       ...
    },
    ...
}  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant