I am making a Web Request call from Jira Automation which is successful. I can't access the WebResponse fields with dot notation because it is not in JSON format. So I want to parse the WebResponse body to get access to certain fields. But I am finding that basic string functions on the body are not returning anything.
e.g. I log {{webResponse.body}} and can see lots of text in the body but if I log say {{webResponse.body.left(5)}}, I get an empty string. Any help appreciated
I've been able to answer this myself. Answer was to go further in the dot notation and use webResponse.body.result and then I could access my desired field by dot notation e.g. webResponse.body.result.number
I am working on something similar but having issues parsing a response body. The response contains 8 areas. I want to parse all eight. Are you saying to use webResponse.body.result.number such as webResponse.body.result.1, webResponse.body.result.2, webResponse.body.result.3, etc....?
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.
I figured it out. I will post a reply with details shortly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Madar_ Andrew , could you please post your results with examples?
I am trying to capture the remote links
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.