Add a new field from two field one is long type other is string type

Hi,

I am trying to join two field fetched from database, one is long type and other is string type .

I am using following filter.

filter {
mutate {
add_field => { "IssueLink" => "%{project_key}-%{issue_num}" }
}
}

"project_key":"DOCS"
"issue_num":667

"IssueLink":"DOCS-0.667E3"

Expected output - "DOCS-667"

why the output is not expected ? What's the problem here ?

It's not clear what is the input and what is the actual output.
Can you please clear up your post?