Help with wget updating a saved filter

I am trying to change a saved filter remotely using wget.


When I run this:-

wget --no-check-certificate "http://almtools/jira --action updateFilter -id \"101754\" --search \"key =jdcmast-2111\" --user $USER --password $PASSWORD"

I get the following:-

Resolving almtools (almtools)... 10.105.133.16
Connecting to almtools (almtools)|10.105.133.16|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2016-07-19 08:45:29 ERROR 403: Forbidden.

Any help on this is highly appreciated.

1 answer

1 accepted

The parameters which you are using are for JIRA CLI, not for wget.

@Petar Petrov

How do I get the wget parameters?

Updating a filter through the REST API requires a PUT method - wget cannot do that. You need to use cURL.

Something like this:

curl -s  -u <user>:<password>  https://<jira host>/rest/api/latest/filter/<filter id> -X PUT -H "Content-Type: application/json" --data '{"name":"<filter name>", "jql": "<new JQL>"}' -v

Make sure you understand what you are doing - read about cURL and read about JIRA REST API.

Hi @Petar Petrov

Thanks for your help. Got it now all working

Cool, glad to help! Please accept the answer so the question is marked as closed.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published yesterday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

383 views 5 5
Read article

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