I have a Jira Automation Rule that adds comment to an issue whenever a new commit is created in the BitBucket Repository referring the Issue Key. However, the smart value {{commit.message}} is only fetching me the first line of the commit messages, incase of multi-line commit message. Does any body have any way to print the entire commit message using smart values?
Hi @Carter -- Welcome to the Atlassian Community!
I saw an item in the public suggestions backlog about commit messages with commas being interpreted as a delimiter, and so turned into a list.
You could check if that is happening with the line breaks by logging/adding a comment for {{commit.message.size}} to see it returns a value (or is greater than 1) and so is s list.
If so, you may be able to reform the message with {{commit.message.join("\n")}}
Best regards,
Bill
Hey, thank you for the quick response!
I tried your suggestion, but {{commit.message.size}} did not return any value at all, so I am guessing it's not a list.
Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I cannot enter defects for this tool, so I submitted this as a suggestion here:
https://jira.atlassian.com/browse/JSWCLOUD-20928
Please take a look to add additional details and repro steps. Thanks!
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.