How to write JIRA CLI Script in Groovy?

I am using Groovy for writing a script. I want to use CLI script using Groovey. So how we can write script for CLI. Please give me the step to write a script in Groovy to run CLI commands. And how we execote that script in JIRA?

4 answers

1 vote

This is the same question as https://answers.atlassian.com/questions/192736/how-to-write-a-script-in-cli which has more information.

However, it's still very unclear what you're trying to do. You keep asking about the CLI and Groovy but don't explain any of the structure of what you're trying to do with them. It's difficult to help you when you keep talking about two separate things you thing you want to use together when you have not told us how you want to use them. I'd suggest that you forget the CLI and Groovy for now and tell us what the end goal is - then we can actually start to tell you things like "do X in the CLI and you can then do Y with Groovy" or "If you do X in Groovy, then you'll be able to use the CLI to automate Y".

without eaxct requiremet no one is going to help here!!

only requiremts seeing here is CLI and Groovy!!

i am not sure why you people only preferring CLI and groovy, is there any specific reason???

Hi Bob,

Actually ,we want to Import External database in the jira by using CLI Plugin.So we have to write Script for this.How can we do this ?

Hi Bob,

Actually ,we want to Import External database in the jira by using CLI Plugin.So we have to write Script for this.How can we do this ?

p.s. I'm not Bob.

What does "import external database" mean? What are you importing from the database? Issues? Is it another bug tracker?

Why are you insisting on the CLI when Jira has importers that may well be a lot more easy?

I am Bob :), but I don't have a clue what you are trying to do so it is hard to recommend anything specific. The mechanics of using groovy and CLI are in this question: https://answers.atlassian.com/questions/178123/groovy-script-question

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,198 views 13 19
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot