Automation for Jira: Delete issue link in another project

Solveig Petersen September 7, 2021

Hi community,

In project A I want to trigger the automation

(Field "User" is changed)

Then check if the "User" was set to "empty"

then I want to take a look at the issues that are linked to the one in project A, which are in project B.

Then I want to go into the ticket of project B and change a field value (hardware returned to IT Admins -> yes) and delete the link between the two issues and write the links in the log. 

I can't get it to work, I've tried a bunch of things.

My current state is this, my audit logs recognizes the right issue from project A that I am testing with but does not find the linked issues:

Branch rule / related issues
No related issues could be found.
Bildschirmfoto 2021-09-07 um 15.03.30.png
Any ideas what I could try? Can you help me?
Thank you in advance,
Solveig

1 answer

0 votes
Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2021

Hi @Solveig Petersen, it should work. Did you set the scope to multiple projects and selected projects A and B? What did your Automation rule audit log say? I'd remove the second re-fetch issue data; I don't think you need that.

Solveig Petersen September 7, 2021

Hi @Ivan Lima ,

Yes I did put the scope to multiple. The audit log said all worked fine except

Branch rule / related issues
No related issues could be found.
So I believe it does not find the linked issues? 
Bildschirmfoto 2021-09-07 um 18.36.06.png
Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2021

I recreated the same scenario, different fields, though I got it working. You actually should be seeing more steps being logged on your Automation audit log. Try isolating the steps by changing things here and there, so you can make sure you're going through each of the steps. Also, I'm assuming the project permissions are aligned with the actions you're trying to achieve. Look at my setup; let me know if you spot the differences besides the fields, which shouldn't matter much.

Screen Shot 2021-09-07 at 1.15.21 PM.png Screen Shot 2021-09-07 at 1.19.32 PM.png

Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2021

Also, check if the branched rule is restricted to the projects in scope.

Solveig Petersen September 8, 2021

Thanks so much for your help.

Permissions:

The actor of the automation is "Automation for Jira". Do you know which permission I have to give in the project to ensure that this user is able to act? 

 

The branch rule includes both projects that this rule should act in.

Bildschirmfoto 2021-09-08 um 11.57.28.png

I will test all steps separately and get back to you.

Like Ivan Lima likes this

Suggest an answer

Log in or Sign up to answer