Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i automate a status transition triggered by a related issue statuscategory

Álvaro Galvez Garrido December 26, 2022

I'm trying to automate when I close an issue (statuscategory = done) from Project A, I want to transition a related issue status from project B

I have site-admin permissions

Right now I'm following the next pattern:

Global Automation

1. Checks every x minutes JQL: statuscategory = done and createddate>= 2022-12-01 and project = GDPA

2. Branch for All linked issues

     a. checks if Project = HELPME as issue field condition

     b. checks if Status = In progress squad as issue field condition

      then: transition status to -> Pending

 

I've tried JQL, advanced conditions expressions, issue field conditions on point 2 and still getting this kind of error, and not transitioning any issue related

 

 

 

 

1 answer

0 votes
Alex Koxaras -Relational-
Community Champion
December 26, 2022

Hi @Álvaro Galvez Garrido 

First of all I would use a rule like the following:

transition realted.png

and I would change the scope of this rule from a project specific rule, to a global rule. TO to that:

  • Go to cog > system
  • Global automation
  • Find your rule and change its scope to global
  • Try your rule and verify that it's working
Álvaro Galvez Garrido December 26, 2022

Hi @Alex Koxaras -Relational- 

For your answer, I've tried using the trigger action as issue transition too, and still not working.

For the next observation, the rule is already global, thanks for this, I'll add it as description

Alex Koxaras -Relational-
Community Champion
December 26, 2022

@Álvaro Galvez Garrido "not working" doesn't provide a lot of details for me to be able to help you. What  do you mean is not working? What message are you getting? What does the audit log say?

Like Bill Sheboy likes this
Alex Koxaras -Relational-
Community Champion
December 26, 2022

Some other things to consider is the following:

  • Do you have browse project permission on the other projects?
  • Do you have the transition issues permission on the other projects?
  • Are there any conditions/validators on the linked issues workflows which doesn't allow these issues to be transitions?
Álvaro Galvez Garrido December 27, 2022

Hi @Alex Koxaras -Relational- 

I definetly can explain a little bit more for the recomendation:

Im reffering to this, my own automation is following the steps that you describe right above 

 transition realted.png

 

For the 2nd comment:

I have site-admin / project-admin permisions:

  • Are there any conditions/validators on the linked issues workflows which doesn't allow these issues to be transitions? Yes, for the status "In Progress squad" relates to a transition called "in review" that requieres a group role. However, I've tried with the status "Waiting for squad" too that doesn't require any permisions and the comparison on the audit logs says that No related issues could be found. even though is have related issues (GDPA-1533 linked to HELPME-131961)
  • image.png
Alex Koxaras -Relational-
Community Champion
December 27, 2022

@Álvaro Galvez Garrido 

Site/project admin do not cover the project's permissions. You have to make sure that you have transition issues permission on the other projects as well.

Thank you for the audit log, but I also want you to paste your rule to which this audit log refers to. Concerning the:

 and the comparison on the audit logs says that No related issues could be found. even though is have related issues (GDPA-1533 linked to HELPME-131961)

Please paste a screenshot of the issue with its link.

Álvaro Galvez Garrido December 28, 2022

Site/project admin do not cover the project's permissions. You have to make sure that you have transition issues permission on the other projects as well.  Already checked, i have the permissions

schedule uses JQL: project = gdpa and issuetype = request and statuscategory = done and createddate>= 2022-12-01

image.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events