Create Linear Tickets from TOML files, it currently supports creating 1 parent ticket and unlimited child tickets per TOML.
```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ```
Install Linear Templater
bash
cargo install linear_templater
You need to have the environment variable LINEAR_TOKEN
set. I am currently implementing this way so that a .env
file can be used per TOML directory and a person can seamlessly transition between multiple Linear workspaces. You can obtain your linear token from the API section of your account settings.
Start with the help flag to get the latest commands
```bash
linear_templater -h
Create Linear Tickets from TOML files
Usage: linear_templater [OPTIONS]
Options:
-f, --fetchids
Command
bash
LINEAR_TOKEN=xxxx linear_templater -f ~/Documents/output.json
Result:
json
{
"data": {
"viewer": {
"id": "xxxxxx",
"name": "Batman",
"teamMemberships": {
"nodes": [
{
"team": {
"id": "yyyyyy",
"name": "Justice League"
}
}
]
}
}
}
}
Input file
```toml title = "This is a parent issue" teamid = "yyyyyy" assigneeid = "xxxxxx" description = """ We need to create a batcave """
[[children]] title = "This is a child issue that will be linked to the parent issue" teamid = "yyyyyy" assigneeid = "xxxxxx" description = """ Figure out where to put the batcave """
[[children]] title = "This is a second child issue that will be linked to the parent issue" teamid = "yyyyyy" assigneeid = "xxxxxx" description = """ Make sure that we have enough bats """
```
Command
bash
LINEAR_TOKEN=xxxx linear_templater -c ~/Documents/build_batcave.toml