Meanwhile I got back an answer for this from support:
Synopsis
it can be a little tricky to get the final value but I believe it's achivable.Not only Jira but most of the systems will fail if you pass a bracket in the URL it should be UTF-8 encoded for example
Plain text | Url encoded |
[ | %5B |
Since you do know the endpoint you are reaching and the URL format is static for you , you can prepare the placeholder in advance and work on the variables one by one.
The webhook field states the required modification
Request parameters must be url encoded, smart values should use: {{ value.urlEncode }} .
Which translates in your case for the example of variables[RUN_NIGHTLY_BUILD]=trueRUN_NIGHTLY_BUILD]*=*true which is a key value parameter string for both the key and the value to be URL encoded , if we try to encode the key :
Plain text | Url encoded |
variables[ | variables%5B |
RUN_NIGHTLY_BUILD | {{ issue.summary.urlEncode }} |
] | %5D |
After encoding the key the URL would finally look like
https://gitlab.ch......net/api/v4/projects/2318/ref/REF_NAME/trigger/pipeline?token=TOKEN&variables%5B {{ issue.summary.urlEncode }} %5D=true
considering that we didn't encode the value since it doesn't contain any special characters
Resolution & Next Steps
You can create a webhook intercepted like PipeDream to see what is Jira sending and if it is correct for instance this rule delivers the summary as a request parameter in encoded value and the result is visible
Hi @Peet
Without knowing your complete automation rule/webhook:
did you try to write the smart value without [] ? --> {{issue.Custom Field 2}} ?
If this doesn´t work please add screenshots of your settings. That would help to analyze your current situation.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please read the questions a bit more carefully next time, I mentioned that the curly brackets are the actual problem (you can read the official response from atlassian as well for the exact same question)
Appreciate your intention to help tho
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!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.