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

example.rb is wrong for adding comments #383

Open
jhirbour opened this issue Aug 9, 2021 · 3 comments
Open

example.rb is wrong for adding comments #383

jhirbour opened this issue Aug 9, 2021 · 3 comments
Assignees
Milestone

Comments

@jhirbour
Copy link

jhirbour commented Aug 9, 2021

The examples of how to build comments here . Don't seem to work. I was able to build a comment like this, but not sure if it's right or not. (found that example here) .

comment = issue.comments.build
comment.save(
  "body": {
    "type": "doc",
    "version": 1,
    "content": [
      {
        "type": "paragraph",
        "content": [
          {
            "text": "Bug has been fixed",
            "type": "text"
          }
        ]
      }
    ]

@SimonMiaou
Copy link
Collaborator

Jira API has been updated and jira-ruby documentation isn't up to date.

@jhirbour Any chance you have some time to open a PR to update it?

@bobbrodie bobbrodie self-assigned this Apr 27, 2024
@bobbrodie bobbrodie added this to the v3.0.0 milestone Apr 27, 2024
@bobbrodie
Copy link
Member

Hey everyone, I'm going to remove the example file and move to a more organized place in the wiki. Keeping this open until that is complete.

@alessandro-gurgel-smartfit
comment = issue.comments.build
comment.save!(:body => "New comment from example script")

This worked for me

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

4 participants