Hi Team,
Have a requirement to create a ticket based on schedule interval and they want to link 2 tickets to that auto create ticket. Have tried adding one on the linked issue and the other on the More action. The one on the linked issue worked and displayed on the ticket, however the link added Json not worked. So i have added both links in json code, this time it wasn't linked any one. Can any one suggest me please. Sharing the code used on the automation.
Code :
{
"fields": {
"issueLinks": [
{
"add": {
"type": {
"name": "relates to"
},
"outwardIssue": {
"key": "{{CMB-2457}}"
}
}
},
{
"add": {
"type": {
"name": "relates to"
},
"outwardIssue": {
"key": "{{CMB-4100}}"
}
}
}
]
}
}
As I understand CMB-4100 and CMB-2457 are tickets in your Jira. In that case you can't use {{ }} tags with issue keys. {{ }} are reserved for smart values.
IMO is shoulbe be "key":"CMB-4100"
Regards,
Seba
Hi @Sebastian Krzewiński Thanks for the link, have tried with it. Getting an error as
(Too many operations (2) provided for field 'issuelinks'. We support at most 1 operation for this field. (issuelinks)). May be automation will not allow to multiple issue linking?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Technically in Jira Cloud UI you are also linking issue by issue (not in a bulk) so I can believe that Jira automation is blocking that.
You can split this action into 2 seperate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding to Sebastian's answer...
If you read the article provided, there is an open defect that only one link may be added when an issue is created or edited: https://jira.atlassian.com/browse/JRACLOUD-81845
Additionally, there are potential racetrack error problems trying to add / change links too quickly in rules. I recommend creating your issue, adding a Re-fetch Issue action, and then trying to add the link with a separate action.
Kind regards,
Bill
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.