Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,406
Community Members
 
Community Events
165
Community Groups

Create a workspace through command line

Is there anyway to create a workspace and invite members by using the command line(API)

2 answers

2 accepted

1 vote
Answer accepted
Iain Dooley Community Leader Oct 05, 2021

@Chenchen Mao you can do this pretty easily with a BenkoBot action like this:

https://gist.github.com/iaindooley/99ff3d25f869e2b9d4311f692f888147

You can install that action (you'll need to enter your api key/token first then you can preview the code to edit your workspace name and usernames before running) using this link:

https://app.benkobot.com/addaction?actionCodeName=createWorkspaceAddMembers&code=MTYzMzQ3ODI0OTAwMg==

We also have a community board where you can see some examples and a "crash course"

https://trello.com/b/IoHmhz5c/benkobot-community-board

The bundled Trellinator library is open source so you can also use it as a reference for implementing your own, for example here is the team() method used above to find or create a workspace (which used to be called a team, which used to be called an organization ;)

https://github.com/iaindooley/trellinator-libs/blob/fafa6c2ebf508483b52a33000238a7957d95f998/Member.js#L140

Stole my accepted answer. ;)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Trello

Taco Tuesday: New years' resolutions with Trello

Congratulations to @Laura Holton , our latest winner of Taco Tuesday! And thanks to @Kristján Geir Mathiesen for sharing the picture of Taco having fun with his new friend  B...

2,392 views 28 41
Join discussion

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