Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation: Perform action if issue with specific key exists Edited

Hi there,

I'm having trouble creating a condition for a certain issue key which does not exist. If the project ("CHANGE" in this case) exists, the JQL is not valid:

Anmerkung 2020-03-21 183217.png

 

But if the project does not exist, it is valid:

 

Anmerkung 2020-03-21 183425.png

 

Any solution to this?

 

Best regards,

Florian

1 answer

The question is quite interesting. Especially the behavior when the project does not exist.

The question is, how do you generate the key you are looking for? What is the goal you want to reach with your rule?

I'm trying to link issues based on the description. E.g. if the desciption contains [A-Z]+-[0-9]+, it should automatically link this issue. But this is producing errors from time to time, because the issue key may not exist (e.g. COVID-19). To suppress the errors, I'd like to check if the issue exists before linking it.

Like Erik Buchholz likes this

I found this example from Andreas Knecht.

https://blog.codebarrel.io/automatically-linking-issues-just-got-that-much-easier-25601d552e5a

It does exactly the same and generates errors if

  • no issue is mentioned,
  • the key is not valid.

I completely agree that rules that generate errors are bad rules but perhaps this is how it should work. It's a quite simple rule and you could turn off the error messages.

If this solution is unsatisfactory you should ask Andreas how they handle that.

The linking works (and yes - it is almost exactly the same as in the article you've mentioned). I'll check it later as it is currently not a blocker, just a bad situation seeing all the errors flying around.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Jira issue check and more advanced commit verifications for Bitbucket DC

Pre-receive hooks that verify the Git commit message, the modified files, and implement similar code change controls used to be requirements of large enterprises working in regulated industries only....

55 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you