Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Copying the value of a private custom field to another field in a cloned issue

Christoph Päper
Contributor
September 5, 2023

In our Jira Software Cloud instance, we are successfully using Adaptivist Scriptrunner to clone an issue into a linked issue of a different type in a particular workflow transition, i.e. in a Workflow Post Function. I can set standard fields in the new issue to fixed values or copy field values from the original issue, e.g.

issueInput.fields.summary = "PREFIX: ${issueInput.fields.summary}"
issueInput.fields.description = issue.fields.description

We now want to introduce private, Secure Fields from Caelor’s Custom Field Suite (CFS) extension to the issue type of the originating issue. Their visibility is restricted to specific user roles, the add-on user can be included, so Scriptrunner scripts should be able to read the (numeric) values.

Which is the easiest way, in a Post Function, to access the secure field values and copy them to a different “normal” custom field in the cloned issue? I can’t just do

issueInput.fields.customfield_12345 = issue.fields.customfield_67890

 

1 answer

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 2, 2024

Hi @Christoph Päper

Were you able to find a solution for this?

I am looking forward to your feedback.

Thank you and Kind regards,
Ram

Christoph Päper
Contributor
January 4, 2024

Not yet – it didn’t have that high a priority.

Caelor’s documentation seems to suggest to use the Storage API, but that’s beyond my current expertise.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events