I am trying to figure out how I can set a value to a custom assets field on Cloud.
In the example I am trying now, I want to fetch a customer from Assets by matching the Reporter. In DataCenter you can use the Assets Post function and simply set the value using object having inR("Jira user" = ${reporter.name}) in the first transition of the workflow, but since cloud does not have asset post functions, how do you do it in Cloud?
I have ScriptRunner, which I assume is the next best thing, but I am unsure how to script this with ScriptRunner...
So, anyone know how to do it and are willing to share?
I don't know how to do it in scriptrunner, but one option would be to use automation to set the asset field, something like this:
It is using the edit issue component and since you are selecting an Asset field all you have to do is enter the AQL in it to get the object.
Thank you Mikael, I will try that and see if that works.
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.