My goal is to add to each story a link that developers can use as a resource.I want to accomplish this by using automation for Jira App and I think my struggle is to find out what is going to be the JSON payload that I should use to make this happen.Any idea?Appreciate guys!
Hi Joao,
Unfortunately this isn't supported yet: https://codebarrel.atlassian.net/browse/AUT-176
It will probably be a while before we can get to implementing this.
Cheers,Andreas
Thanks anyways.
Up vote. It's not pretty but if the link is consistent you can drop it in the description.
Yeap, that is what I will do as a workaround, but not what I was hoping :-) Appreciate the suggestion.
How can I upvote this to indicate our desire for Atlassian's JIRA development team to prioritize this feature? Our team would like this implemented sooner rather than later?
Need it also to automate the document links based on the Component of the ticket. This should be a resource document for the dev. Need to manage it with the automation rules, no way we go ad a document each time a new ticket is created
I would upvote too! And why is this solved?
This option in the Automation is needed because it allows connecting to knowledge resources such as Confluence directly while creating the new issue.
It is not only needed in Jira Service Management, but it is also needed in all Jira projects:
- add Link to Confluence page
- add Link to PDF File
- add Link to the online registration form
- and many others
Is there a chance to put this feature request back on the roadmap?
Thanks a lot. Dimitri
https://confluence.atlassian.com/jirakb/how-to-create-and-link-remote-jira-issues-using-automation-1085209850.html
I know this is old but it seems like it is still a common issue and I have developed a workaround using Jira automation to call out to Power Automate. I think it could be possible within the Jira automation directly using web requests without needing Power Automate, but I'm not sure how clean it would be.
For my scenario, I wanted to generate documents in SharePoint that relate to the issue and then link the documents back to the Jira issue as remote links.
Here is the high level workflow I used:
1. Jira automation called "Generate Documents" that a user would run from the issue when they are ready.
2. The automation calls an HTTP request trigger in a Power Automate flow passing in the Jira issue.
3. The Power Automate flow does all the magic of getting more details from Jira through the API, creating a folder structure, creating documents, etc.
4. For each document that gets created, I use the API (Issue remote links) the check to see if there is already an existing remotelink with the same name to avoid creating duplicates, and if not, I create a remotelink to the document.
Like I said, if you don't care about checking for duplicates or have complexity around creating the documents, you could probably just use a step in the Jira automation itself to call the API and create the link.
I also saw mention of needing the JSON object format to create a remotelink. To find it, I basically created a new remotelink, queried it with the API to get it as a JSON object, and then simplified it after some trial and error. The API here does allow for some quirky behavior like if you format a link wrong, it still allows you to create it but it doesn't show up in the issue and can only be seen through the API call to get remotelinks.
Anyway, here is what seems to work for me. Note you will want to replace the url and title values with your own and maybe play around with the icons.
{ "application": {}, "object": { "url": "https://link.to/the/document", "title": "Name of the Document", "icon": { "url16x16": "" }, "status": { "icon": { } } }}
Hope it helps!
As a workaround, Jira automation can make an API calls to Jira's APIs using the "Send web request" automation to create a remote issue link.
API documentation here:https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-remote-links/#api-rest-api-3-issue-issueidorkey-remotelink-post
This is a good solution if you know the Service Portal URL. I have a use case where the automaton rule will need to link to a Service Portal issue of an issue that was created during the automation run.
@Wakefield Travers
This mirrors our use case. We use a branch rule after task creation aimed at the most recently created issue.
Then reference the smartvalues {{issue}} within the branch.
So for example, the endpoint for the call is "https://yourinstance.atlassian.net/rest/api/3/issue/{{issue.key}}/remotelink"
This is fantastic and worked perfectly. Thank you!
It looks like you're new here. Sign in or register to get started.