Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create smart links via Jira API

Alex Chumbley
Contributor
April 3, 2021

I'm creating issues via the Jira REST API. They have Figma links in them but they're not being rendered as Smart Links. It's showing up as just a regular link.

Is there a way to trigger the Smart Link to be generated when creating issues via the API? 

3 answers

1 accepted

1 vote
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2022

Hello,

For everyone who gets on this thread, the creation of smart links through Jira REST APL is possible by following the steps provided by Ibuchanan in this development question:

  1. Create issue using GET /rest/api/3/issue/{issueIdOrKey}
  2. Send a description in Atlassian Document Format.
  3. Use the inlineCard node as the Smart Link.

An issue payload might look something like the following:

{
  "fields":{
    "project":{
      "key":"NGEW"
    },
    "issuetype":{
      "id":"10308"
    },
    "summary":"inlineCard is a Smart Link",
    "description":{
      "type":"doc",
      "version":1,
      "content":[
        {
          "type":"paragraph",
          "content":[
            {
              "type":"inlineCard",
              "attrs":{
                "url":"https://devpartisan.atlassian.net/browse/NGEW-1"
              }
            }
          ]
        }
      ]
    }

 Thanks!

2 votes
Juan Manuel Ibarra
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 3, 2021

I had the same problem and it seems that it is not possible, in the comments however it can be done with the notation:

[https: //www.test.com.ar | https: //www.test.com.ar | smart-link]

Alex Chumbley
Contributor
April 5, 2021

Got it, thanks @Juan Manuel Ibarra 

Alex Chumbley
Contributor
April 5, 2021
Like # people like this
0 votes
Carlos Garcia Navarro
Community Champion
April 3, 2021

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events