I have two custom date fields actual date and initial date, i want to copy the date from Actual date into Initial field when an issue is created,
How can i write a post-function for it, i have tried copy one field value into another in post function but its not working??
Hello Sarabjeet,
If you are using JIRA Cloud, you can use the Copy Value From Other Field post function to copy the value from the Actual field to the Initial field if both are of the same type (Both custom date pickers).
These would be the steps:
- Navigate to your project > Project Settings > Workflow > Click to Edit the relevant workflow
- On Diagram Mode, click in the Create transition of the workflow > Click on Post Functions:
- Click to Add Post function > Select the Copy Value From Other Field, configuring it to copy the value from Actual date in the Initial Date:
- Save the workflow draft
If you are using JIRA Server, you can use the add-on JIRA Suite utilities to perform the same steps as in JIRA Cloud.
Let me know if the steps above worked for you.
Hi, I tried the same steps hopefully.
I made changes in the workflow added a post function and than publish workflow and its was linked to the project.
I hope its correct but it is not working for me or i missed something
And additionally one more thing how can i add a counter so everytime the date changes counter is set from 0-1-2....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For JIRA Cloud,
When copying a field from a Story Issue to its Parent Epic, will the field be overwritten if there is content present? Or will it add it to the bottom of what is already there?
Ideally, if I have 5 linked issues to my Epic, when completing each issue, have its results copied to the epic but to not overwrite the subsequent issue when it is eventually completed.
Suggestions?
Thanks in advanced.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
Sorry, but, if I copy the value of the custom field at component at post function, the workflow fail if the component was not created before.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm assuming a similar solution is also available for Jira Data Centre?
I have ScriptRunner in my DC environment and it looks as if I can achieve a similar outcome by using a 'Copy field values' post function.
Are you aware of any other native functions within Data Centre that may be able to inherit a field from a parent or would ScriptRunner be my only option?
Thanks!
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.