youngmon/atlassian-qna huggingface dataset:
Trying to copy custom field from Organisation to Issue
Asked by Sebastien Soum:

Hi community

Im fairly new to Jira, and trying to automate some actions for my team.

We use Jira to manage customer tickets.

Each Client Organisation has a custom field called "Billing Type" with a drop down list of options (e.g. Prepay, Timesheet, etc)

Each issue has a custom field with the same drop down list of options

We use this data to help automate our billing, which works great

We want to speed up the process to copy the Billing Type from Organisation level to each issue (if the issue is blank).

I cant for the life of me figure this out.

any ideas would be appreciated


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Sebastien Soum](/t5/user/viewprofilepage/user-id/5544553) and welcome to the community,

Unfortunately there isn't an easy way to get these value. One workaround though would be to use a JQL to get specific values and then populate the fields you want. I would suggest to use an automation and then with a bunch of if/then/else using the JQL e.g. *organizations in organizationDetail("Region", "APAC")*, edit and popuate the fields you want.

Let me know if that helps!

Alex

*References:*

* *<https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#organizationDetail-->*
* *<https://jira.atlassian.com/browse/JSDCLOUD-13433>*
* *<https://community.atlassian.com/t5/Jira-Service-Management/Is-there-an-API-to-manage-customer-details-in-Jira-Service/qaq-p/2647114>*


Tags: cloud

jira-cloud
where do I change the email for sending invoices
Asked by Greg Baynham:

I can't find where I edit the email address where invoices go, where is it?


Answers:
author: Nicolas Grossi
body: [@Greg Baynham](/t5/user/viewprofilepage/user-id/4453658) Welcome! You might take a look at this thread: [https://community.atlassian.com/t5/Bitbucket-questions/How-to-change-the-email-address-for-invoices/qaq-p/959469?utm_source=gdn\&utm_medium=paid-display\&campaign=21252494340\&adgroup=\&device=c\&devicemodel=\&placement=\&aceid=\&creative=\&adtype=\&gclid=Cj0KCQjwkdO0BhDxARIsANkNcrdE-p3JX7GKvt6_yxCN49oRMZKIJ-sxdEoeDcsxmX1kG2eg6fZ6bjYaAjdxEALw_wcB\&country=\&network=x\&targetid=\&gad_source=1](https://community.atlassian.com/t5/Bitbucket-questions/How-to-change-the-email-address-for-invoices/qaq-p/959469?utm_source=gdn&utm_medium=paid-display&campaign=21252494340&adgroup=&device=c&devicemodel=&placement=&aceid=&creative=&adtype=&gclid=Cj0KCQjwkdO0BhDxARIsANkNcrdE-p3JX7GKvt6_yxCN49oRMZKIJ-sxdEoeDcsxmX1kG2eg6fZ6bjYaAjdxEALw_wcB&country=&network=x&targetid=&gad_source=1)

Nicolas


author: John Funk
body: Hey Greg - Welcome to the Atlassian Community!

You need to change the Billing Contact under Settings \> Billing


Tags: cloud

jira-cloud
Is there a way to manage opnsense certificate expiration dates?
Asked by Amanda Barber:

I'm looking for a way to track certificate expiration dates. I was thinking Jira could potentially do this with Assets, but I wasn't sure if it would work for certificates specifically (rather than tangible objects like phones and laptops).

We use cert-manager for our Kubernetes certificates but need something else for our router certs.

I also saw [this](https://marketplace.atlassian.com/apps/1227641?tab=overview&hosting=cloud&utm_source=atlassian_community&utm_medium=article&utm_campaign=monitor_domain_ssl_certificate) add-on, but wasn't sure it would meet our needs.

Thank you in advance for any help or suggestions!


Answers:
author: Mikael Sandberg
body: You should be able to use Assets for that, I have seen Assets being used to manage contracts, service contracts etc. Here is a [blog post](https://ttpsc.com/en/blog/asset-management-in-jira-service-management/) that describe different use cases.


Tags: cloud

jira-cloud
Single select field in Jira
Asked by kayode_faith:

Hi all I have two single select fields.

Field A "Is color blue?"

* Yes
* No

if yes what shade of blue?

* Light
* Dark
* I don't know

2nd field is hidden based and based on the selected answer of the first question, second question is shown.

if yes, then tell us what shade of blue. I have this code working where the second question is freeform text, is this possible with two single select fields as it is not working for me.

if yes what shade of blue?

def requireCode = getFieldById(getFieldChanged())  
def requireCodeValue = requireCode.getValue()

def codeLocation = getFieldByName("Duration of hold")

if ('Yes' in requireCodeValue) {  
codeLocation.setHidden(false)  
codeLocation.setRequired(true)  
} else {  
codeLocation.setHidden(true)  
codeLocation.setRequired(false)  
}  
Thank you,  
Kayode


Answers:
author: Shawn Doyle - ReleaseTEAM
body: Yes, this is what is called dependent cascading fields.

<https://confluence.atlassian.com/jirakb/creating-dependent-cascading-lists-in-jira-1142426572.html>

comments: author: kayode_faith
body: Great and thank you Shawn. That worked. I would have preferred a pop up but your suggestion saved me a lot of time troubleshooting.


Tags: data-center

jira-data-center

jira-server

server
Why am I not getting emails eg. when I am assigned a ticket?
Asked by Catherine Li:

My email notification settings are on, but I don't get email notifications when I'm assigned a ticket, when a ticket I'm assigned to has a new comment, or any email notifications at all.


Answers:
author: Trudy Claspill
body: Hello [@Catherine Li](/t5/user/viewprofilepage/user-id/5544439)

Welcome to the Atlassian community.

Can you share with us the details of how all your Notifications settings are set?

Notifications depend not only on your personal settings but also on the settings for Notifications in the projects. Your personal notifications take effect after the project notifications settings are applied. If the project is not configured to send notifications to Assignee for the issue events, then you would not receive any notifications.

Your first step to investigate this problem would be to contact the Project Administrator and Jira Administrator to find out if the project in question is configured to send emails to Assignee for those activities. If it is, then the next step would be for the Jira Admin to open a support case with Atlassian directly to find out if your email has been blacklisted, and to get that fixed if it has been.


author: Seon Shakespeare
body: Hi [@Catherine Li](/t5/user/viewprofilepage/user-id/5544439),

Welcome to the community!

Trudy and Bibek have given you some great starting points. Here's a breakdown of what to check:

1. **Project Notification Scheme:** Ask your Project Admin or Jira Admin to check if the project is set to send notifications to assignees (**Project Settings \> Notifications**).

2. **Your Personal Notification Settings:** Make sure you have email notifications enabled for the events you want (**Profile \> Settings \> Notifications**).

3. **Email Delivery Issues:**

   * Check your spam folder.
   * Verify your email address in your Jira profile.
   * **Ask your Jira admin to check their email server logs** for any errors related to Jira notifications.

Hope this helps!


author: Bibek Behera
body: [@Catherine Li](/t5/user/viewprofilepage/user-id/5544439) ,

Welcome to the community, I would suggest checking your settings for how the notifications are set.

<https://support.atlassian.com/jira-software-cloud/docs/manage-your-jira-personal-settings/>

Best Regards,

Bibek


Tags: cloud

jira-cloud
SQL to get attachment size with project key and issue key
Asked by Bhargavi Vasa:

I have SQL to get project key,issue key and attachment id's,looking for attachment size in byes in jira version 8.20.5

Example :

Project Key , Issuekey , Attachment ID, attachmentsize in bytes

SELECT

p.pkey AS project_key,

ji.issuenum AS issue_key,

fa.id AS attachment_id

FROM

project p

JOIN

jiraissue ji ON p.id = ji.project

JOIN

fileattachment fa ON ji.id = fa.issueid


Answers:
author: Jim Knepley - ReleaseTEAM
body: There's a "filesize" field in the "fileattachment" table, add it as part of your SELECT statement and that might get you what you want.


Tags: data-center

jira-data-center
How to get custom fields with values using SQL Iin jira
Asked by Bhargavi Vasa:

I am looking for SQL to get custom fields with values in jira for issues

Jira version : 8.20.5

Projectkey,issuekey,customfieldname,customfieldid,customfieldvalue


Answers:
author: Kris Dewachter
body: Hi [@Bhargavi Vasa](/t5/user/viewprofilepage/user-id/5136196) ,

Can you describe more in detail on what you are trying to achieve ?

You can use JQL to find the issues you need, and configure the columns in the list view.

Best regards,

Kris

comments: author: Bhargavi Vasa
body: I am looking for SQL to get custom fields in a project with their values for all the issues in that project


author: Kris Dewachter
body: The quickest way to do it to export the issues via JQL. Export the issues to an Excel or CSV file with all fields. You can select the information you need from within the Excel file

![Screenshot 2024-07-16 at 11.51.18.png](https://community.atlassian.com/t5/image/serverpage/image-id/335842i4795606E89A94617/image-size/large?v=v2&px=999 "Screenshot 2024-07-16 at 11.51.18.png")


Tags: data-center

jira-data-center
Automation to add the name of the open sprint to a label
Asked by Bruno Leite Cervantes:

Hello there! I'm trying to create an automation to add a label in all issues that are part of the sprint after the sprint starts. I'm using "When Sprint Started" as a trigger, and the automation is running successfully, but I can't get the name of the sprint - it's like the issues has no sprint assigned right after the sprint is started. Is there a way to get the name of the sprint using the "When Sprint Started" trigger? Here's the automation for the ones who can help. Thanks!

Kindly Regards,

Bruno![image (7).png](/t5/image/serverpage/image-id/335732i8D0C26FCDCC9C3DB/image-size/large?v=v2&px=999 "image (7).png")

![image (8).png](/t5/image/serverpage/image-id/335733i4F585921F62911B0/image-size/large?v=v2&px=999 "image (8).png")

![image (9).png](/t5/image/serverpage/image-id/335734iFCEA3B0566F4EA71/image-size/large?v=v2&px=999 "image (9).png")

![image (10).png](/t5/image/serverpage/image-id/335735iBA1100A68B172456/image-size/large?v=v2&px=999 "image (10).png")


Answers:
author: Trudy Claspill
body: Hello [@Bruno Leite Cervantes](/t5/user/viewprofilepage/user-id/5540054)

Welcome to the Atlassian community.

You are using the wrong smart value in your Create Variable action.

Take another look at the text in the Sprint Started trigger. It tells you the smart value to use to get the name of the sprint that triggered the rule.

![Screenshot 2024-07-15 at 1.15.31?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335747i2F76CCED067C29F2/image-size/large?v=v2&px=999 "Screenshot 2024-07-15 at 1.15.31?PM.png")

comments: author: Bruno Leite Cervantes
body: Thanks. Trudy. I saw that. But does it work in case we have issues with more than one sprint? I had the same problem before, that's why I'm using the sprint.first.name. I'll try using only sprint.name to see if it works.

Regards,

Bruno


author: Trudy Claspill
body: It should work in this case because the rule trigger is Sprint Started. In the context of that rule {{sprint}} refers to the sprint that was started and triggered the rule.

In other rules triggered by other events the context would be different.


Tags: cloud

jira-cloud
Adc administrador de organiza??o
Asked by Rita Marocco:

Ol?, como fa?o para adicionar um novo administrador da organiza??o no Jira?


Answers:
author: Trudy Claspill
body: Ol? [@Rita Marocco](/t5/user/viewprofilepage/user-id/5544398) ,

Bem-vindo ? comunidade Atlassiana.

Somente outro Administrador da Organiza??o pode conceder a fun??o de Administrador da Organiza??o a outro usu?rio.

Consulte esta documenta??o para obter detalhes sobre como fazer isso:

<https://support.atlassian.com/user-management/docs/give-users-admin-permissions/>

---

Hello,

Welcome to the Atlassian community.

Only another Organization Administrator can grant the Organization Administrator role to another user.

Refer to this documentation for details about how to do that:

<https://support.atlassian.com/user-management/docs/give-users-admin-permissions/>
> Adc organization administrator
>
> Hi, how do I add a new organization admin in Jira?


Tags: cloud

jira-cloud
Workflow block
Asked by bartlomiej_jochym:

Hi, Is it possible to block the transition to status after a change from it? Maybe add a validator? For example, once you change from "in progress" to any status (review, testing, etc.), you can't go back to the status in progress.

Ignore IN TEST TO DEV, IN TEST ON DEV, BLOCKED AND CLOSED

![Screenshot 2024-07-14 at 10.44.42.png](https://community.atlassian.com/t5/image/serverpage/image-id/335714i71C13C73F47D34C6/image-size/large?v=v2&px=999 "Screenshot 2024-07-14 at 10.44.42.png")![Screenshot 2024-07-12 at 17.01.17.png](https://community.atlassian.com/t5/image/serverpage/image-id/335715iD2F2343E8C9B42A1/image-size/large?v=v2&px=999 "Screenshot 2024-07-12 at 17.01.17.png")


Answers:
author: Mikael Sandberg
body: Yes, that is possible. You can either use the previous status validator, or the other option is to disable the global transition and instead create a transition from for example To Do to In Progress.

comments: author: Matt Parks
body: It's my understanding that the previous status validator means only that you can't transition back to the status that you just came from. But, if you were in that status in the distant past (e.g. Backlog \> In Progress \> In Test \> Blocked), you could still move from Blocked \> In Progress, even with the previous status validator.


author: Mikael Sandberg
body: I should have said the condition in my answer. The previous status condition will evaluate if the issue has been in a previous status or not, but you invert it so that you can prevent the issue going back to that status

![Screenshot 2024-07-15 at 1.09.37?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335744i6D09DB06F98CA96E/image-size/large?v=v2&px=999 "Screenshot 2024-07-15 at 1.09.37?PM.png")

Here is an issue that is using the above condition, it is currently in the In progress status and I have these options:

![Screenshot 2024-07-15 at 1.11.00?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335745iDA4532F45D89D8FC/image-dimensions/234x143?v=v2 "Screenshot 2024-07-15 at 1.11.00?PM.png")

If I move it to To Do, my only option from there is Done

![Screenshot 2024-07-15 at 1.11.12?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335746i63E0B477C9BB10B1/image-dimensions/245x137?v=v2 "Screenshot 2024-07-15 at 1.11.12?PM.png")

And this is persistent so it doesn't matter how many times I move it between To Do and Done, In progress will not be an option since I have already been in that status. The scenario you describe would only happen if you selected "Most recent status only".


Tags: cloud

jira-cloud

jira-software

transition

workflow
Create issue keeps refreshing
Asked by Gaston:

We have created a vanilla to-do project in which anonymous users can create issues. Since two days ago (both browsers Chrome and firefox, even on incognito and without add ons) keep refreshing non stop.

Our logs constrantly show

2024-07-15 14:40:59,152-0300 https-jsse-nio-8443-exec-112 WARN \[c.a.j.w.action.util.Error404\] Detected anonymous access to page \<<https://jira.xxx.com/s>\> redirecting to login page.

we haven't defected a pattern yet.

What can we do to diagnose the problem?

Edit: The Jira instance is on a private network, and the refresh error does not happen when we log-in


Answers:
author: Nicolas Grossi
body: [@Gaston](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5348784) So, can you change the port of jira to test if it some kind of pen testing performing to your jira instance ?

Nicolas

comments: author: Gaston
body: Is it necessary? The refresh error does not happen when we are logged in


author: Nicolas Grossi
body: [@Gaston](/t5/user/viewprofilepage/user-id/5348784) Is the URL some klind of public URL ? Can you change the port of jira to test if it some kind of pen testing performing to your jira instance ?

Nicolas

comments: author: Gaston
body: Hi, thanks for replying, the instance is on a private network


Tags: data-center

jira-data-center
I want the user to be selected for their specific portal group
Asked by Suporte Tecnologia:

How do I ensure that a request made in the customer portal is automatically assigned to a specific user?  

I want the user to be selected for their specific portal group.


Answers:
author: Mikael Sandberg
body: Hi [@Suporte Tecnologia](/t5/user/viewprofilepage/user-id/5544366),

Welcome to Atlassian Community!

The portal group is not stored anywhere and cannot be used to find out where the request were created, so your only option is to look at either the request type or the organization that the reporter belongs to in order to identify who should be assigned the request.

comments: author: Suporte Tecnologia
body: Thanks for the answer!

So can I create a custom field, where the user can choose an option and this will be the key to associating it with an agent? If yes, how can I do this?


author: Mikael Sandberg
body: Yes, that is possible. And then all you need is an automation that will set the assignee based on the value selected.

To create the field just go to Settings \> Issues \> Custom fields and create it from there.


author: Suporte Tecnologia
body: It worked! Thank you very much!!


Tags: cloud

jira-cloud
Notifications Off
Asked by Alicia Johnson:

I'm not receiving any notifications to my email address for tags or when I'm a watcher or when something is assigned to me. This is across Jira and Confluence. My Support Team can't figure out the issue so they have turned me to this community to see if anyone has any ideas. Is there a setting somewhere that may have been changed, or anything that would affect me getting notifications.

Note: I do not have the notifications going to a special folder or anything in my email like that. I'm not getting the emails at all.


Answers:
author: Mikael Sandberg
body: Hi [@Alicia Johnson](/t5/user/viewprofilepage/user-id/5544364),

Welcome to Atlassian Community!

It could be that your email address has ended up on the suppression list and that is why you are not receiving any emails. You should have your admin contact Atlassian support and they can verify if this is the case and removed you from the list.


Tags: cloud

confluence

jira-cloud
how to calculate in automation smart value
Asked by Viktoria Soldatova:

how to calculate in automation smart value.  
trigger when issue closed  
set  
(days till end of the year)\* custField(number)


Answers:
author: Viktoria Soldatova
body: problem was in quotations  

wrong  
![665466E1-BD2E-43C2-BF69-C494CCAAA0A8.png](https://community.atlassian.com/t5/image/serverpage/image-id/339239i0968613084879DD7/image-size/large?v=v2&px=999 "665466E1-BD2E-43C2-BF69-C494CCAAA0A8.png")  

right  
![DF0EAABB-EDE0-45C7-875F-7ECF2F0117DB.png](https://community.atlassian.com/t5/image/serverpage/image-id/339240iE6996DB5DC9C5460/image-size/large?v=v2&px=999 "DF0EAABB-EDE0-45C7-875F-7ECF2F0117DB.png")


author: Kris Dewachter
body: Hi [@Viktoria Soldatova](/t5/user/viewprofilepage/user-id/5289998)

First, you can construct the last day of the current year by getting the current year, and adding "-12-31" after it. You can put this in a variable in the automation rule.

![Screenshot 2024-07-15 at 20.35.41.png](https://community.atlassian.com/t5/image/serverpage/image-id/335716i1CA16B6A478C44E7/image-size/large?v=v2&px=999 "Screenshot 2024-07-15 at 20.35.41.png")

Then, you can use this smart value to calculate the difference in days between now, and the end of the year.

{{now().diff(EndCurrentYear.toDate).Days}}

Best regards,

Kris

comments: author: Viktoria Soldatova
body: thank you [@Kris Dewachter](/t5/user/viewprofilepage/user-id/4588367)   
audit log shows success but the field is empty.  


author: Kris Dewachter
body: Hi [@Viktoria Soldatova](/t5/user/viewprofilepage/user-id/5289998) ,

Can you post what you have created ?

Also, you can add the "Log Action" at various points in the automation rule to display values in the audit log so you can debug what is going wrong.

![Screenshot 2024-07-16 at 07.39.16.png](https://community.atlassian.com/t5/image/serverpage/image-id/335781i8401CE51149B5CDB/image-size/large?v=v2&px=999 "Screenshot 2024-07-16 at 07.39.16.png")

Best regards,

Kris


author: Viktoria Soldatova
body: ![Screenshot 2024-07-16 at 10.27.41?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335884i0DC5AD92C69A8ACA/image-size/large?v=v2&px=999 "Screenshot 2024-07-16 at 10.27.41?AM.png")

[@Kris Dewachter](/t5/user/viewprofilepage/user-id/4588367)


author: Viktoria Soldatova
body: [@Kris Dewachter](/t5/user/viewprofilepage/user-id/4588367)

![Screenshot 2024-07-16 at 10.28.31?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335886iA486D79312512C84/image-size/large?v=v2&px=999 "Screenshot 2024-07-16 at 10.28.31?AM.png")![Screenshot 2024-07-16 at 10.28.36?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/335885i3FA6C5BED3C33D8F/image-size/large?v=v2&px=999 "Screenshot 2024-07-16 at 10.28.36?AM.png")


Tags: cloud

cloud-automation

jira-cloud
Email This Issue - Getting substring from displayname
Asked by Elston, Jonathan:

Inside the HTML Template of Emai This Issue, how can a substring within $!issue.assignee.displayName be obtained and then displayed?"

(Example: $!issue.assignee.displayName = "Sample, Joe")

How could I obtain the substring "Joe"?

How could I obtain the substring "Sample"?

How could I display the 2 substrings as "Joe Sample"?

I know there are substring function in jql but I don't know if those things are available in Email This Issue.


Answers:
author: John Funk
body: Hi Jonathan,

If using an automation rule/smart values, you can do this:

{{issue.assignee.displayName.split(" ").first}}


author: Tessa Tuteleers
body: Hey [@Elston, Jonathan](/t5/user/viewprofilepage/user-id/5531067) ,

Welcome to the community!

VTL can use a lot of string functions, including the one you need.   
The trick is to always to calculations within a new variable, otherwise it won't work.

I wrote it out in different steps for you:

    #set ($myString = "$!issue.assignee.displayName") #set ($myArray = $myString.split(" "))
    #set($length=$myArray.size())
    #set($last = $length - 1)

    $myArray[$last]

You need to follow these steps:

* get your string (in your case assignee)
* break the string up into an array using a delimiter (I used a space here, but you can use whatever you need
* calculate which part you need -\> always do this in a variable
  * the first part is 0
  * the last part is whatever the length of the list of parts -1 (what I printed)
* print the part you need

Hope this helps!

- Tessa

comments: author: Elston, Jonathan
body: Thanks. I'll try it out. Would the following work if currentUser.displayName = lastName, firstName?

```
#set ($displayName = ?$!currentUser.displayName?)

#set ($myArray = $displayName.split(?,?))

$myArray[1] $myArray[0]
```


author: Tessa Tuteleers
body: Hi [@Elston, Jonathan](/t5/user/viewprofilepage/user-id/5531067)

Looks good, it should work. But test it out just in case and let me know if the result is not what you expect.

I'm not sure currentUser works in this context, so I would be happy if you let me know, so we can learn from each other!

If this answer helped you, please accept it so others can find the solution to a similar question faster.

- Tessa


Tags: cloud

jira-service-management

jira-service-management-cloud