Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the name or id of workflow for the issue using smart value

Rai, Jagrit February 28, 2023

I want to use condition using automation to check the issue for particular project and workflow for the further transition so how can I get the name or id of a workflow and how can I compare that value.

1.png

1 answer

0 votes
Alex Koxaras -Relational-
Community Champion
February 28, 2023

Hi @Rai, Jagrit 

Although I'm not quite sure what you want to accomplish, the only thing that you can acquire using smart values is the status. So if you use  the changelog smart value (https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#:~:text=the%20Jira%20instance.-,%7B%7Bchangelog%7D%7D,-Used%20with%3A ) you can get e.g. the previous status of the issue by writing:

{{#changelog.status}}{{from}}{{/}}

to get the status id OR if you want to get the status name you write:

{{#changelog.status}}{{fromString}}{{/}}

 Let me know if the above helps.

Rai, Jagrit February 28, 2023

How can i get workflow name or id for the issue using smart values

Alex Koxaras -Relational-
Community Champion
February 28, 2023

@Rai, Jagrit using smart values you can't get the workflow name or id.

You might be able to get the both of them values, by using a webhook inside your rule and using REST API, but I haven't really tried it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events