How to pass an hyperlink to JIRA 'Description' field using R?

Rajkumar Balakrishnan September 7, 2017

When I try to send a link like as suggested here  for the 'description, field while creating a JIRA ticket through a R script,

library(httr)

x <- list(fields = list(project = c(key = "TEST"),
summary = "New Issue Ticket Created",
description = "[Issue Doc|http://sharepointsite.com/folder/filname.ext]",
issuetype = c(name = "Task"),
assignee = c(name = assigneeUsrName)
)
)

response <- POST("https://somecompany.atlassian.net/rest/api/2/issue/",
body = RJSONIO::toJSON(x), authenticate("usrName","pwd", "basic"),
add_headers("Content-Type" = "application/json"), verbose())


I only see the text in the description field instead of a hyperlink.

[Issue Doc|http://sharepointsite.com/folder/filname.ext]


What am I missing here?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events