Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

Google sheet & JIRA integration using Google App script

Hey, Im trying to integration Google sheet to integration with JIRA using Google App script to count for a given JQL. in some forum mentioned that i will get 

response like below:

{"expand":"schema,names","startAt":0,"maxResults":50,"total":29521,"issues":[]}

But, for the same

URL https://abc.com/rest/api/2/search?jql=project in (MOBILEDEV)

I'm getting response as expected in browser but not in Google app response. 

 

var headers = {"Accept":"application/json", "Authorization": UserCredentials};

var options = {"method":"GET", "contentType" : "application/json", "headers": headers,"payload" : "payload" };

var response = UrlFetchApp.getRequest(IssueURL, options);

Logger.log(response);

 

any hep appreciated. 

Thanks. 

Shiva

 

2 comments

I used the API and this app to connect the two

Thanks but I want the counts out of JQL result, I don't want the details of the JIRA tickets. 

I have learned that, we have to use  var resp = UrlFetchApp.fetch(IssueURL, options); instead of getRequest but fetch throws bad request exception. 

any help appreciated. 

 

Thanks

S

Comment

Log in or Sign up to comment
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you