Forums

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

"Find or create" alternative?

Raegan Fordemwalt July 7, 2021

Hey, I liked using Legacy Bot because of the ability to "find or create" a card, which would create a unique card or find the one you were looking for. Butler now has a "create a unique card" option, which works similarly, but stops the command if it finds that a card already exists, making it so you can't continue the command.

Is there an alternative to "find or create" on butler now? Thanks so much

 

1 answer

1 accepted

1 vote
Answer accepted
Iain Dooley
Community Champion
July 7, 2021

@Raegan Fordemwalt I don't think this is possible anymore with New Butler, there is a Card.findOrCreate() option in BenkoBot. For example this code would find or create a card, then find or create a checklist and add a new item to it:

https://gist.github.com/iaindooley/038c11d73cacab701b3af3122cf27dd2

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events