Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to lookup Users in Create event dialog

Jannik Meibom
November 27, 2019

After upgradering our Confluence Server (self-hosted) to the lastest version 7.1.0, we experince that we cannot lookup users in the Create event dialog. I have updated the Team Calendar plugin to the latest version, which did not resolve the issue.
Two questions:
1) Have anybody else experienced this?
2) Do we need to restart the Confluence server for the plugin update to take effect?

Screen dump of Create event dialog:

Image 2019-11-27_09-27-10.png

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
2 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 25, 2017

First approach with things like this is to make sure you can make the request using curl, or postman or something, then turn it into code.

Other thing is you seem to be using two completely different URLs for making requests too, second one looks bogus.

Stylistically, it's much clearer and safe to write:

http.request(Method.PUT, ContentType.JSON) {
requestContentType = ContentType.JSON
body = [
productClass: 'test',
subscriberId: 'test',
]
...

rather than hand-rolling your own json from a string.

Deleted user
September 26, 2017

Ahh thank you Jamie! Much appreciated for your guidance. 

I ended up with the following:

def addModem(key, modemId) {

def http = new HTTPBuilder('http://incognito/devices')    

    http.request(POST, ContentType.JSON) {

        requestContentType = ContentType.JSON

        request.addHeader("authorization: IncognitoUms auth=${key}", "ContentType: application/json")

        body = [oui: "test",

               productClass: "test",

               serial: "test",

               subscriberId: "test",

               manufacturer: manufact,

               description: "",

               deviceModel: "{id: \"${modemId}\"}"]

        response.success = { resp, JSON ->

         return JSON
 
         }

         response.failure = { resp, JSON ->

            return JSON

        }

    }

}

 

Many thanks, 
Pon 

0 votes
Raihan Rasool
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 22, 2018

Hi @[deleted], 

I am wondering how the second part is receiving the token fetched in the first part. Can you please share the full script that gets the token, inserts it in to the headers and makes a REST call ?  Thanks

 

--Raihan

Raihan Rasool
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 22, 2018

@[deleted]

Like Tadd Simmons likes this
TAGS
AUG Leaders

Atlassian Community Events