Hi,
I have a subscription which notifies me through email whenver a feature is logged in azure boards from service now app. I want to change the work item type from feature to Product backlog item, for that i need work item ID. can someone help me how to get work item ID from below email trigger.
Since i am using Email as a trigger, i guess i need a logic to extraxt the work item id from subject line or something.
Hello Nived,
Thanks for your help.
I used the below expression to split and display the 2nd word from subject line and it worked.
split(triggerBody()?['subject'], ' ')[1].
Hi @HarikaVL
if the mail subject follows same pattern, then try this to get work item id from mail subject
Hello Nived,
78322 is the work item ID.
The expression you have written is wrong, it is used for calling variables .
Could u tell me which is workitem id from the subject line ?
Feature 78322 - RITMxxxxx : Test Feature2
Hello Nived,
In the subject line, it will be as below
Feature 78322 - RITMxxxxx : Test Feature2
I have added a below action to break the subject line and it worked
However, i added another action to consider the 2nd string as the work id so added below action and getting the error.
Not sure, where i am going wrong. Please help.