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.
The parameters which you are using are for JIRA CLI, not for wget.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cool, glad to help! Please accept the answer so the question is marked as closed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.