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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Up vote. It's not pretty but if the link is consistent you can drop it in the description.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeap, that is what I will do as a workaround, but not what I was hoping :-)
Appreciate the suggestion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We had the same need on our side. As a workaround, we covered it this way:
we created a label custom field "application" (11352 below), with the confluence page id appended after the label name itself. I can't remember why we didn't use the components field though
We created a text field "Confluence page(s)" (11357 below)
we created an automation where each time the "application" field is edited, the "Confluence page(s)" is overwirtten by adding links to pages formed this way:
{ "fields": { "customfield_11357": "{{#issue.customfield_11352}} https://<confluence base url>/wiki/spaces/<documentation space key>/pages/{{value.right(9)}} \n {{/}}" }}
way from ideal, labels are cluttered with pages ids, custom confluence link instead of built-in links, and links are "raw" (not displaying the page title) ... just a workaround
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We used the solution proposed by Etienne Borella, it helps a lot, just as you said the link to the page is displayed as URL not an embedded Confluence link, still a good workaround
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One more customization I wanted to implement since I started with Jira only to find out ONCE AGAIN that this is not feasible. Every single time I am trying to do something that goes off the main road I find myself looking at aging feature requests and bug reports. And you say Jira is FLEXIBLE???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.