Forums

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

Automation failure for Issue Type

Michael Lombardi March 1, 2018

I have an automation built in to do 2 things when the Summary contains specific characters:

  • add a specific label
  • transition to a new status

The first is always successful when expected. The second fails with the error message: "Error transitioning issues BOPSTRAD-1977 (The issue type selected is invalid. (issuetype))"

I have not set any if statement regarding an issue type, all it does it compares two values, as described above, so I'm struggling to figure out why it is failing.

 

Any help would be greatly appreciated!
Thanks,
Michael

1 answer

1 vote
Brant Schroeder
Community Champion
March 1, 2018

An issue type is associated with a specific workflow.  Look at the issue that failed and then at the associated workflow.  Does the workflow contain the status you are trying to transition to?  If it does can it transition from the status it is in to the status you are trying to move it to? (Is there a transition connecting the two statuses)

Michael Lombardi March 2, 2018

Screen Shot 2018-03-02 at 4.40.21 PM.pngScreen Shot 2018-03-02 at 4.40.36 PM.png

Michael Lombardi March 2, 2018

Looks to me like there are no issues with the workflow. The automatic prompt is from "TO DO" to "WEB TRADES"

Michael Lombardi March 2, 2018

Screen Shot 2018-03-02 at 4.42.08 PM.png

Brant Schroeder
Community Champion
March 4, 2018

I think that the issue is that there is no transition from created to Web Trades.  You will want to either create a transition from create to Web Trades or change it to check when the status is To Do and the summary contains.... transition to web trades.  Let me know if that works.

Michael Lombardi March 5, 2018

Unfortunately it wouldn't allow me to add a transition from Create at all, so couldn't go that route, however I took the other piece of advice and simply checked the status from To Do and it worked! Thanks so much for your help @Brant Schroeder !

Michael Lombardi March 5, 2018

@Brant Schroeder really weird, the test I did worked, and then the next issue that came through on its own failed on the final step. So the new Comparison works.

Any ideas?Screen Shot 2018-03-05 at 3.58.17 PM.png

Brant Schroeder
Community Champion
March 5, 2018

Would need to know more about the automation.  Is it still running on created?  

Michael Lombardi March 6, 2018

It is, yes, but it is passing the compare condition that asks if it is in a specific status, so I'm not sure how that would affect this?

Also, JIRA doesn't seem to allow a transition to begin from before the first status (it is not an option when creating a new transition in the workflow).

Brant Schroeder
Community Champion
March 6, 2018

Michael,

  The transition it is looking at is still from create to to do.  I believe this puts us back where we started.  I would suggest that you add an automation that looks at issue transitioned as the trigger and add a condition of status equals to do and summary contains "....". I think you will get the desired result.

Michael Lombardi March 6, 2018

It doesn't seem to recognize a new ticket that falls into To Do as a "transitioned" issue

Brant Schroeder
Community Champion
March 6, 2018

I was able to create the following automation in our test environment and it runs just fine.

  • Issue Created
  • Issue Matches: summary ~ "Testing" AND project = "project name"
  • Transition Issue: In Progress (891) -> Project Name: Service Request Fulfillment

This runs fine.  I then changed the transition to a transition that is not in the workflow and got the error that you are receiving.  My guess is that you have multiple workflows in the project or you are using a workflow outside of the project.  This is the reason it can not transition.  You will need to be more specific with you JQL and specify the issue type as well to ensure it uses the proper work flow.  You may have to add several conditions if this spans multiple workflows.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events