I've tried following the help on getting values from properties, but failed to work out the correct format for getting a property with multiply values.
The value can be seen when using the following URL.
https://*****.atlassian.net/rest/api/2/issue/73304/properties/proforma.forms.i1
It's path, using JSONView, within this URL is:
value.questions[7].text
Does anybody know how to format the {{issue.properties}} smart-value to get at this property?
Any help is much appreciated.
I managed to find the solution with some help from the codebarrel support team.
{{issue.properties."proforma.forms.i1".questions.get(7).text}}
The quotes were the unknown bit, and the i1 is a dynamic reference to the form in the properties (incrementing number), but as long as we add our attached forms in the correct order we should be able to reference it.
Not perfect, but workable!
Some additional info:
I used the following URL to some the list of properties. I could then click on the property I was after and drill down through to find the individual elements required.
https://********.atlassian.net/rest/api/2/issue/ISD-99999/properties
You are a life savor!!! I have been working on this for days. I was trying to use regex to get the data I wanted but this is so much cleaner. Plus the regex was not working at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey there Jon,
Unfortunately, getting out complex (ie. JSON objects) or lists from the properties in Cloud isn't supported at the moment. I've raised a ticket for it at https://codebarrel.atlassian.net/browse/AUT-1361
It might be a bit tricky since we don't know generically what type a property might be
Cheers,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since you only have problems when dealing with multiple values... Have you checked https://docs.automationforjira.com/working-with-issue-data/multi-value-fields.html#examples?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately not. The list functions do not appear to work on properties. I have tried many variations but with no success. Perhaps I am formatting incorrectly, but I cannot find any good examples in extracting values from properties. 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.