Hi,
Since Codebarrel became Atlassian the product or more specifically its documentation is utterly useless. From a great startup documentation they transformed it into enterprise boilerplate water, also removing the precious references to each action / variable available to you, which I think is very short-sighted, but they don't care right.
Sorry for ranting, I used to enjoy Automation for JIRA product before.
Good people, can anyone help me to understand, what variable should I use when I'm trying to create automation for "Pull request created" that will give me the information of pull request?
Before the merge of the companies it was {{webhookData}} as we had to explicitly send that information, now I see it became a part of the system, but no (or easily searchable) documentation is available.
Hi @boris.lapouga -- Welcome to the Atlassian community!
The only two attributes I see in the "new" version of the smart value documentation are Title and URL: https://support.atlassian.com/jira-software-cloud/docs/smart-values-development/
You could also follow these instructions to do a REST API call for an example issue lookup, and see what other attributes might be available with pullrequest:
https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there @boris.lapouga,
Developer from Automation here.
I understand your frustration with the move from our old docs to the ones provided by Atlassian, there are a number of ongoing discussions around this and we'd like them to provide the same discoverability we had on the old ones.
Yeah as @William Sheboy mentioned the only documented fields on {{pullRequest}} are url and title. There are also a few more such as state and id, but those are still under development and thus subject to change.
I've reached out to get more of those values finalised, and when they are locked in we'll add them to the docs mentioned above. In the meantime you can try searching for fields in the API mentioned by Bill.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response Yvan, even though you are Atlassian member now, I believe startup spirit still lives in you, it would be awesome if the documentation of this product would be much more available and discoverable as you said, I hope to see it back one day!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Yvan Martin
Thanks for the info, and topic switch, kind of: where can we find more documentation on the automation functions and smart values, as Boris asked earlier?
Here's an example post that I tried to get help from the community as the docs do not seem to match the behavior:
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there @Bill
You'll find that in the smart values section on text fields here: https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-fields/. There are also other smart value sections on the right page navigation once on that page.
To get there from the main support page you'll need to click the link "Advance your rules with smart values", then select "Smart values - text fields".
Also if you wanted to access the variables after calling split, they are treated as a list, and you'll need to use a function such as first(), last(), and get() see: https://support.atlassian.com/jira-software-cloud/docs/smart-values-lists/
Hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Yvan Martin
Thanks for explaining that, it helps, and...I think you are confirming the point: you had to explain how the function works as the documentation for split() and other functions is incomplete/inaccurate.
The references for further explanation on the text function page points to Oracle documentation, which although interesting, does not explain function usage. Perhaps a revisit of the documentation ported form Code Barrel to Atlassian could help.
Thanks again!
Best regards,
Bill
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.