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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Copy Jira Custom Field "Team" to Another Custom Filed Using JWT Calculated Text Field

A customer wishes to copy the Jira default Custom Field "Team" to another Custom Field.  I figured this would be easy and use Calculated Test Filed (by JWT).  I entered the following for the calculation::

"Team is %{10202}" where 10202 is the "Team" field

Well this gives me back an integer index versus the actual string Team field. 

So instead of seeing "Team is Test Team", I am seeing "Team is 624"

Is there a way to take this index and convert it to the right Team string?  I assume its stored in array?

1 answer

1 accepted

2 votes
Answer accepted

Hi @Robert W_ Olsen

Unfortunately we don't offer that type of support for that field. However, in our next release, which is coming pretty soon, we are adding support to the Advanced Roadmaps' fields and you will be able to easily copy it!

In the meantime, if the count of teams is not too big, you can use as a workaround our function getMatchingValue() to copy it just like this:

getMatchingValue(%{10202}, ["1", "2"], ["NameTeam1", "NameTeam2"])

In the second parameter you should write all of your Team's IDs, and then in the third parameter you should write all of their names in the same order, so the function will read the Team's value and it will return its name.

Cheers,

Sergio.

Thank you Sergio, I will let the customer know and see if they can give me the list of Team names so we can proceed with your recommendation.  Appreciate the time!

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you