Error creating multi-line Linear comments

I’m trying to create an automation which posts a comment to a Linear issue. It works fine with single-line strings, but if I try a multi-line string like this:

then I get an error:

How do I fix this?

Flagging This as a bug/"Not working as intended(details inside)

I have replicated the issue on my side, (Linear is our Main PM dev tool), so educated guess, is that a good chunk of the API still has warnings plastered over it “that its subject to change, functionality in alpha”. 2 months ago those warnings were on 90% of the API.

image

@Michaela

In The Meantime @aspiers

  1. Use This Module.
    image
  2. Use This Resource to generate the required code, Inline the variables, then replace the variables with “make variables” in the make UI.
    https://studio.apollographql.com/public/Linear-API/explorer?variant=current
Not exactly like this, but it should look similar to this. (clickme)
mutation CommentCreate {
  commentCreate(
    input: { body: "test content test content", issueId: "xxxx-xxx" }
  ) {
    comment {
      body
      user {
        id
      }
    }
  }
}

Additional Reading: https://developers.linear.app/docs/
:smile: This should allow you to get back up and running in the meantime.

1 Like

Fancy seeing you here @JugaadiTech :blush:

Thanks a lot for tagging me here. I’ll make sure to pass on the info :pray: