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

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

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

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!

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

77 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you