I have a custom list field that I want to update with a smart value in a post function. However, when the post runs the list doesn't update. What I am attempting to do is populate the list with the value in this substring. {{issue.components.name.substringBefore("|")}}
I have tested this out using a rule and pushing the result to comment so I know the substring request is sound. I am starting to think maybe this doesn't work the way I expect inside this function. If so is there another way to go about it.
If there is a way to update a custom field based on this smart value on a transition I'd love to hear about it!
Example.
Component = Team | Feature
Customer List = [POST] Set Value = {{issue.components.name.substringBefore("|")}}
You can use %%CURRENT_DATETIME%% and %%CURRENT_USER%% expressions to update date/time and user. Other than that you cannot use smart values in the Post function, these are for Atlassian Automation
You can use the Jira Automation feature to update the field
The trigger would Issue transition and add the condition if it's required and then add the action with updating the issue with the relevant custom field value to copy components
Let me know if this helps!!
Thanks,
Pramodh
Bummer but I was resigning to that being true. Okay so If I am stuck with Automation then when would you recommend?
I just discovered that you can maybe place a smart value inside the Edit Issue action but when I trigger the rule (transition) the custom list doesn't update.
~Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Trigger - transition issue
Condition - add it appropriately
Action - edit issue ( select the custom field and add the smart value )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, that's exactly what I have set up. I have even made sure the value I am extracting from the component equals that of the custom list. When the rule fires i log it out to the comments to verify the results of the smart value.
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.
Audit logging is very helpful and I forgot about that thanks. Part of my issue was a trailing white space and another was how I accessed the customer list. For unknown reasons only issue.customfield_id would work but that's okay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.