The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events