How to create external links (WebLinks) through JSON import?

Mikhail T September 25, 2013

Though I've figured out, how to link issues to other imported issues in the same Jira-instance:

"links": [
        {
            "name": "Duplicate",
            "destinationId": "FOOO89",
            "sourceId": "FOOO88"
        }
]

creating Web Links remains a challenge...

Could someone post a functional JSON snippet -- specifying, that issue FOOBAR-17 links to URL http://example.com/ with the rendered text of Example and icon of http://example.com/favicon.ico ?

I have no problem adding such a link by editing the issue in the browser, but automatically importing them through JSON is a different story...

I suppose, I can just insert a bunch of rows into the remotelink-table after the JSON-import finishes. But that seems rather hackish (and unrealiable)...

1 answer

0 votes
Teck-En
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 25, 2013

Hey Mikhail, importing web link through JSON importer is currently not available yet. There's a feature request raised in the tracking system and you might want to vote the feature and input your feedback on it: https://ecosystem.atlassian.net/browse/JIM-801

Mikhail T September 25, 2013

Oh... Alright, how about inserting directly into the remotelink-table? Would that work in the interim? It seems to, but we aren't sure...

Thanks!

Teck-En
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 25, 2013

it should works provided you got all the information correct in the database. Nonetheless, it would be a risky way. Instead of that, why not give a try on JIRA REST API to create the remote link.

Link to documentation: https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+for+Remote+Issue+Links

Suggest an answer

Log in or Sign up to answer