I am trying to pull a random item out of an array from a json webhook request. I've got the following done:
{{#=}}RANDOM(){{/}}{{webhookResponse.body.size}}{{#=}}FLOOR({{listSize}} * {{rand}}){{/}}{{newIndex.asNumber}}{{webhookResponse.body.get(newIndex)}Unfortunately, this doesn't work at all. I've tried variations like:
{{webhookResponse.body.get({{newIndex}})}}
When I just use a raw literal number, it works fine. e.g.,
{{webhookResponse.body.get(0)}} Not really helpful if I'm building a random function, basically.
Am I missing some nuance about the syntax here? Thanks
Hi Ben,
The user you type while creating the Application Link will be used only to create the Application Link, that's why he needs to be an administrator. It will not be used everytime in order to retrieve information from FishEye.
This error means that the user logged in JIRA side either doesn't exist in FishEye side or is not among the groups allowed to read the repository.
As it works when you enable anonymous access, it's most probable that the JIRA user doesn't exist in FishEye side. Can you please check this?
I hope this helps!
Hi Ben,
Yes, it applies to Crowd as well. Can you check if your user is able to login to FishEye from Crowd?
https://confluence.atlassian.com/display/CROWD/Testing+a+User's+Login+to+an+Application
Please note that the user details need to be exactly the same in both JIRA and FishEye, not only the user ID.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This fixed it! Looks like the user account details were out of sync. Once I fixed it and was able to log into Fisheye with the user, the Source tab also began working in JIRA. Coincidentally, user id's of type "built-in" with identical info are also working too.
Thanks much for your help on this one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also having problems with "Received status code 401 (Unauthorized)". I have JIRA configures to use SSO with Crowd and Crowd is authenticating with LDAP. I get the unauthorized message even if I enable anonymous access in FishEye. From FishEye, when I click on "test connection" it says everything is working, but on the JIRA side I cannot access the source. I'm told by the user who reported this that it used to work, so I probably broke it somwhere along the line when updating JIRA, FishEye or Crowd.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Felipe,
Thanks for taking the time to get back to me. Does this apply to Crowd authentication as well? We are using Crowd and my user id (the one I'm using in JIRA) is over in Fisheye, and a member of the groups that are allowed to access the repo. Not sure if there is something going on with the Crowd authentication that requires an extra step?
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.