Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter.Share.SetScope returns a HTTP 415 response #9

Closed
1 of 5 tasks
ctreminiom opened this issue Mar 25, 2021 · 0 comments · Fixed by #31
Closed
1 of 5 tasks

Filter.Share.SetScope returns a HTTP 415 response #9

ctreminiom opened this issue Mar 25, 2021 · 0 comments · Fixed by #31
Assignees
Labels
bug Something isn't working Jira Software Cloud
Projects

Comments

@ctreminiom
Copy link
Owner

go-atlassian version

v1.1.1

go-atlassian component

  • Jira Software Cloud
  • Jira Agile Cloud
  • Jira Service Management Cloud
  • Confluence Cloud
  • Atlassian Admin Cloud

Describe the bug 🐛

The Filter.Share.SetScope method returns an HTTP 415 when we try to edit the Filter Share scope

bash request failed. Please analyze the request body for more details. Status Code: 415

To Reproduce 🚧

  1. Execute the method

Expected behavior ✅

Edit the Default Filter Share Scope

Screenshots:page_facing_up:

If applicable, add screenshots to help explain your problem.

Additional context

Code snippet

package main

import (
	"context"
	"github.com/ctreminiom/go-atlassian/jira"
	"log"
	"os"
)

func main() {

	var (
		host  = os.Getenv("HOST")
		mail  = os.Getenv("MAIL")
		token = os.Getenv("TOKEN")
	)

	atlassian, err := jira.New(nil, host)
	if err != nil {
		return
	}

	atlassian.Auth.SetBasicAuth(mail, token)

	response, err := atlassian.Filter.Share.SetScope(context.Background(), "GLOBAL")
	if err != nil {
		if response != nil {
			log.Println("Response HTTP Response", string(response.BodyAsBytes))
		}
		log.Fatal(err)
	}

	log.Println("Response HTTP Code", response.StatusCode)
	log.Println("HTTP Endpoint Used", response.Endpoint)
}
@ctreminiom ctreminiom added the bug Something isn't working label Mar 25, 2021
@ctreminiom ctreminiom self-assigned this Mar 25, 2021
ctreminiom added a commit that referenced this issue Apr 29, 2021
Repository owner deleted a comment from create-issue-branch bot Apr 29, 2021
@ctreminiom ctreminiom linked a pull request Apr 30, 2021 that will close this issue
Merged
@ctreminiom ctreminiom removed this from To do in Jira Service Management May 1, 2021
@ctreminiom ctreminiom added this to To Release in Roadmap May 1, 2021
@ctreminiom ctreminiom moved this from To Release to Released in Roadmap May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Jira Software Cloud
Projects
Archived in project
Roadmap
Released
Development

Successfully merging a pull request may close this issue.

1 participant