Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Project/Global Automation rules & creating/acting on issues in different projects.

David Quiram
Contributor
February 7, 2022

Apologies for the large post, but I'm in a web of automation. We are starting to create automation to create and act on issues between various projects. I will try to follow this per the workflow and include pictures of the rules as they are. Bolded steps are the steps that are not working correctly. 

  1. Employee submits a Facilities project form for some equipment they want/need ordered. 
  2. Agent decides request needs approval and moves it to the appropriate status.
  3. Request gets Finance approval and the Facilities issue is transitioned to "Approved" status.
  4. Automation triggers to perform the following actions:
    • Create a task issue in the Finance project.
    • Set specific fields

      Fac Auto.png Fac Auto Error.png
  5. Automation triggers to adjust the newly created Finance issue.

    Fin Auto Error.png
  6. Finance works their issue and marks it as Done
  7. Global Automation triggers once a day to perform the following actions:
    • Check Facilities issues for their subtasks. If the subtasks are Done, transition the issue to the next status.

      Fin Fac Auto Error.png

Step 4 Details:

After reading a few other community questions and checking the available automation options. I found the options to create issues in other projects. The automation creates the issue, but some of the fields are not working. 

I checked the field configuration that the Finance project issues use and confirmed the custom fields that failed are in that field configuration. So not sure what else might need to be done on that. The fact that just linking the issues isn't working properly is also discerning. 

Step 5 Details:

After the Facilities automation creates the Finance issue, we have automation in the Finance Project to adjust the request type on the task to the request type we prepped for it. But it looks like the trigger of issue create isn't working. I'm guessing an issue created from other automation doesn't trigger the "issue created" trigger? Which now that I'm typing this, I guess makes sense to prevent automation loops? If that is the case, can we adjust the request type of that issue in the previous automation or should we use a different trigger?

Step 7 Details:

After reading This Post , I see that we have to make this global automation. We decided to set it to a daily check to keep our runs below limit. I manually ran the rule a few times and no matter what I change, it isn't finding an issue to transition. I have the rule set to both the Finance and Facilities projects.

The thought was that it would run a daily check on Facilities issues of a specific request type and if it has a linked issue that's completed, move the issue to the next status. 

This was so that our facilities agents can just watch for the status change and know it's ready for them to work as the other issue has been completed. 


Thank you for any responses and thoughts on this. 

2 answers

2 accepted

4 votes
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 7, 2022

Hi @David Quiram 

  • Unknown fields - I believe they need to be available on the screen config for automation to populate them
  • New Issue Trigger - Verify that Allow Rule Trigger is checked under rule descriptions.  By default, Jira does not enable rules triggering other rules to optimize performance
David Quiram
Contributor
February 7, 2022

Thank you for cutting right through the web of everything I was looking at and knowing exactly what the two issues were. 

I was initially confused on screen, but then figured you meant the create screen.

Just in case anyone else is reading this for information. I ended up making a specific issue type for this request and then making a specific screen scheme/screens for the new issue type. 

1 vote
Answer accepted
David Quiram
Contributor
February 7, 2022

Also just as a follow up on Item 7 in my list. 

I ended up resolving this issue by adjusting some settings back and forth. I found plenty of community posts saying you had to have a global transition to the status you wanted to automate the move to.  Tested that and it was not the case for us. 

Looking at all the other settings, I found that we have two "Request type" fields for some reason. I changed from the first in the list to the second and that resolved the issue for us. 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Service Management Events