How to write a Script in CLI?

I am using CLI Plugin. So is this possible to write a script usin CLI?

6 answers

check here for example of CLI commands for attachments

Follow the Installation and Use instructions and then look at the examples related to attachments as rambanam pointed out.

0 votes

Yes it is.

If you need more information, you'll need to tell us more about what you are doing. You haven't really given us much to work with here.

ok.. I want to access anthor database in JIRA. So I want to know that how we can access this using CLI? where we can write a script? and how we implement this script in our JIRA.??

ya.. but I want that databaseusing CLI Script only.

hey thanks, its very useful... We can use this using commands, but there is also possible using the script's. So you know how to write script for that?

A bit confused by what you mean by script. You can use the run action to run all the actions listed in a file for instance - this is sometimes referred to as a script. You can also run CLI actions from programming scripts like groovy or any other scripting language. Is that what you are trying to do?

Ya, exactly that I need. Thanks Bob. I will try it. I will write CLI actions from programming scripts ,so I will prefer a Groovy for writing a script. Thank you once again Bob.

Hi Bob, I am getting the same problem.Please ,Can you provide some example for writing Script in CLI ?

Hi Bob, I want to addAttachment in Remote machine, So how can I do that using CLI commands?

Siddheshwar - the documentation tells you how to use that command in the CLI. It's the first line on

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 ...

2,811 views 11 18
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