Theoretically Jira automation can be used instead of Jira webhooks, but you will need to send the expected request with custom data (the format of the request data should look like one in the comment above)
I checked the statusCategory in a browser and the following returns:
{"self":"https://jira.jcrew.com/rest/api/2/status/14149","description":"","iconUrl":"https://jira.jcrew.com/","name":"Selected for Development","id":"14149","statusCategory":{"self":"https://jira.jcrew.com/rest/api/2/statuscategory/2","id":2,"key":"new","colorName":"default","name":"To Do"}}
So it does show the correct status (Selected for Development) but the defaults to this at the end of the line: "colorName":"default","name":"To Do"}}. Thoughts? If you can help me fix this, I think it will be my last question! :)
Oh, I see...so you are using different names for Status and Status Category in your Jira Configuration. In that case you need to adjust the card data. Please edit your workflow, open the last step and edit the schema for adaptive card - you need to change
toUpper(body('Parse_JSON')['issue']['fields']['status']['statusCategory']['name']) to
> Also, with the old connector recognized links. Is there anyway to make links active in this one?
Eric, could you please add more details on this issue? not really sure what is "old connector" and what is "this one"...Do you mean if we can somehow reuse the webhooks from Jira Server connector (that is deprecated now) and use them in new flows?
I have reached out to Atlassian and am awaiting help. Didn't realize this was the same issue as it is not happening in my original workflow which is working the same with reference to the same jira project.
As for the the reference to "old connector", I was speaking of the format of the deprecated connector's results vs. the new format. In the first image from the now deprecated connector, links added into jira comments were displayed in teams as rich text links. While in the 2nd image, the are not. Not the end of the world, but the user was inquiring. Thanks.
The Jira markup will not be displayed on new Adaptive cards as they are using different rules, that is why formatted text from Jira event is displayed as is. Old cards (Office 365 cards) from Jira Server connector were using the same rules for displaying formatted text...So that is expected behavior
As for the error on your flow with conditions it seems that this channel and/or team are using different access rules. Have you tried to install Workflow app to that team directly (<Team> -> Manage Team -> Apps -> <Add Workflows app> OR find Workflows app and select Add to a team) ?
Thanks for answering my question on the jira markup. Unfortunate, but I think that the users will be happy to have this rather than nothing. As of the error, I attempted to create the workflow directly from the teams channel itself with no luck. Though I think that I have figured out that the issue is related to the permissions of the actual teams channel. When I create a new channel, everything works as expected. With that said, I now have to determine how to modify the permissions of existing channels that want this configure again.
One more question (I know I've said that before, but I think this time will be true!) Here it goes. Is there a way to change the font size for each of the pieces? See image.
Atlassian Team members are employees working across the company in a wide variety of roles.
September 24, 2024 edited
Hi all,
It seems like Jira webhooks schema was changed a bit and avatar urls for user is not always received. If you have an error like below while trying to execute the workflow, please update the adaptive card schema by one mentioned in this article (updated card).
Hi Volodymyr- I have recently upgraded jira to version 10.3.5 and then the links stopped working. it was failing. Have you heard of anything in version 10 that would create an issue? I have attached some images. it says that the Template is invalid.
The workflow was working up until the day that I made the change. The full error is:
Unable to process template language expressions in action 'Post_card_in_a_chat_or_channel' inputs at line '0' and column '0': 'The template language expression 'if(equals(body('Parse_JSON')['user']['avatarUrls']['48x48'], null), 'https://www.gravatar.com/avatar/00000000000000000000000000000000?d=mp&f=y', body('Parse_JSON')['user']['avatarUrls']['48x48'])' cannot be evaluated because property 'avatarUrls' doesn't exist, available properties are 'self, name, key, emailAddress, displayName'. Please see https://aka.ms/logicexpressions for usage details.'.
Hi. you mentioned "please update the adaptive card schema by one mentioned in this article (updated card)." where is the new adaptive card schema mentioned?
I have tested workflows on Jira DC 10.6.0 and no issues found. The card was sent to the channel without any issues. The updated card can be found on the first page (it was updated) or from this document.
Please try to recreate workflow using updated schemas.
Thank you for checking. It's weird that it stopped working right after the upgrade, but I'll reconfigure from scratch and see if I can get it to work again. Thanks again.
Hi Volodymyr. After deleting the old entry and starting again. Though I still had issues. For one, when I try to create a workflow from blank now, it doesn't display all of the Dynamic content.
So I had to create a workflow from the template. then it showed.
I notice now that it working again from the template, I have this empty --> empty. Any idea what that's from?
Please try to use the built-in notifications feature of Jira Data Center application as an alternative for Workflows. Please find more details here . That is new feature recently added to the application, hope it will allow you to configure and receive notifications from Jira DC more easier.
74 comments