youngmon/atlassian-qna huggingface dataset:
Custom field set by worklog
Asked by Lenzs?r Adrienn:

Hello!

I would like to ask for help, because I can't really manage to get the global automation to work well. I created two custom fields: Test Estimate, Test Remaining. The Test Estimate is filled in by the consultant when he creates the ticket, and then an automaton copies this value to the Test Remaining. The goal would be that when the ticket is transferred from the In Progress status to the Test, the time logged in the Test status is deducted from the number entered in the Test Remaining field. I'm here for now, but even if I log in, 0 is still entered in the logged time:

![2024-08-08_09h51_25.png](/t5/image/serverpage/image-id/340683iB54327F382B919F6/image-size/large?v=v2&px=999 "2024-08-08_09h51_25.png")

![2024-08-08_10h26_22.png](/t5/image/serverpage/image-id/340687iFCEE22EC151C9913/image-size/large?v=v2&px=999 "2024-08-08_10h26_22.png")

The point would be that only the hours logged in Test status are subtracted from the value of Test Remaining. If it is in a different status, do not run the automation.

Thanks for the help!


Answers:
author: Lenzs?r Adrienn
body: Hi [@Dick](/t5/user/viewprofilepage/user-id/4586768) !

I solved the problem, this is the solution: {{#=}}{{ issue.fields.customfield_xxxxx }}-{{issue.worklog.last.timeSpentSeconds.divide(3600).round}}{{/}}

Thanks,

Adrienne


author: Lenzs?r Adrienn
body: Dear [@Dick](/t5/user/viewprofilepage/user-id/4586768) !

Thanks for the help, I'll give it a try.

Thank you,  
Adrienne


author: Dick
body: Hi,

You need to tell Jira that it's a math expression by using  

**{{#=}}** math expression **{{/}}**

comments: author: Dick
body: More on math expressions by Atlassian: [Here](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/)


author: Dick
body: and don't forget to make it hours by

{{issue.timetracking.timeSpentSeconds.divide(3600).round}}


Tags: cloud

jira-cloud
I got this message. Can you help me fix this problem.
Asked by Niklas_Helgesson:

![Sk?rmbild 2024-08-08 101613.png](/t5/image/serverpage/image-id/340677i851530BE4B02549E/image-size/large?v=v2&px=999 "Sk?rmbild 2024-08-08 101613.png")


Answers:
author: Dexter de Vera
body: Hi [@Niklas_Helgesson](/t5/user/viewprofilepage/user-id/5563682) ,

Welcome to the Atlassian community,

Your account is inactive and no longer have access in your jira. You may ask you admin for your jira access.

Thanks!


Tags: atlassian-accounts

jira-unknown-hosting-type

not-applicable

unknown-hosting-type
Is it possible to greyed out Past dates in date and time Custom Field
Asked by Prathap DL:

We have a custom field(Date Time Picker) which allows users to select date and time while creating ticket or in edit screen. When user select that date from custom field i want past dates should be greyed out and it should display today date and future dates.

Ex: Current date and time is 8th August 1:00PM. User selected date should be greater than the Current date and time.

Note: We are using Jira cloud and we have script runner and JMWE Plugin.


Answers:
author: John Funk
body: Hi Prathap,

I am not aware of any way to do that. The ScriptRunner Behaviours app would be the closest thing to possibly doing it.


Tags: cloud

jira-cloud
As an Admin how to find an "invisible" Issue to clean up things
Asked by Frank Adler:

We had used an issue type that I'd like to delete. Unfortunately there is one issue left which I am not allowed to see. The issue type is assigned to a frequently used schema, so I have no idea which project this issue belongs to.

Is there a way to find out? Could it be an archived or trashed project?


Answers:
author: Dick
body: Hi Frank,

Issuetypes can be "held" tight by archived projects, similar to workflow statuses.  
You should de-archive the culprit, then assign a different issuetype scheme (or modify the heavily used scheme), and then re-archive it.

Suggestion for workflows: Make a workflow that only holds status "Done" and change the workflow of a project to that, prior to archiving.

Happy cleaning,

Dick

comments: author: Frank Adler
body: Hi Dick,

Thanks for pointing this out. My learning so far:

1. Delete all projects you are absolutely sure you don't need anymore (and delete them hard, don't wait for them to be deleted after x days)
2. Do any necessary tidying up
3. Archive projects that might be useful in the future  
   Delete projects (and give yourself a grace period to change your mind)

Frank


author: John Funk
body: Hi Frank,

I suggest you try the Revyz Configuration Manager for Jira app. You can do a free trial for it, but I think it will show you want you want.

comments: author: John Funk
body: [@Frank Adler](/t5/user/viewprofilepage/user-id/498947) - Any update?


author: Frank Adler
body: Hi John,

Sorry for not responding, cleanup has been deprioritised. Thanks for your suggestion, I installed Revyz Configuration Manager today. Unfortunately it doesn't tell me why it fails when I try to delete an issue type.

<br />

Revyz Configuration Manager seems to be of little value without Revyz Data Manager for Jira or Premium Tier (only mentioned in blocked features, found it nowhere in the description).


Tags: cloud

jira-cloud
What is difference between displayName and name in the board location?
Asked by Ravi Prasad:

In the board REST API response I getting same values from displayName and name.

In the board REST API (documentation not available details information about

displayName and name.

Ref:

<https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-get>

Regards,

Ravi Prasad.


Answers:
author: Anandhi Arumugam
body: Hi [@Ravi Prasad](/t5/user/viewprofilepage/user-id/5370025) The response means  
"displayName": \<Project Name followed by Project Key\>  
"projectName": \<Project Name\>  
"projectKey": \<Project Key\>  
"name": \<Same as Display Name: Project Name followed by Project Key\>  
Hope this helps!


Tags: boards

cloud

jira-cloud

rest-api
Adding a user to a custom field (user field) using JIRA API
Asked by Tom Dangot:

Hey, i've got an automation that creates a jira issue using python. One of my custom fields is user field. I've tried multiple options but none of them seems to be working an actually add a user to this field.

I've tried:  

```
"customfield_10492": {"name":"tom.dangot"}

"customfield_10492": {"value":"tom.dangot"}

"customfield_10492": {"name":"tom dangot"}

"customfield_10492": {"name":"my account id"}

"customfield_10492": {"value":"my account id"}

"customfield_10492": {"value":"[~accountid:my account id]"}



None of them worked, would appreciate your help
```


Answers:
author: David Foote
body: The format is like this:

```
{
  "fields": {
    "customfield_10003": [{
      "accountId": "444444-2ccc-4bbb-8888-8888888888"
    }]
  }
}
```


Tags: api

cloud

jira-service-management

jira-service-management-cloud
Errors after license expiration
Asked by Markku Wallgren:

Hi,

We have several problems with gadgets and applications, that won't anymore work after the Jira Server License expiraiton activated.

This should not happen, because the license was for support only and stops us from upgrading to newer version of Jira and the application itself (perpetual software license).

Please explain why this is happening.

Atlassian does not offer us any way to renew or upgrade our Jira Server license!


Answers:
author: John Funk
body: Hi Markku - Welcome to the Atlassian Community!

You should open a support ticket with Atlassian.

<https://support.atlassian.com/contact/#/>


Tags: data-center

jira-data-center

jira-server

jira-software

server
how we can remove Jquery vulnerability
Asked by SaadBinSaeed96:

Hi Everyone, Please guide me on removing the JQuery vulnerability in the JIRA.  


Answers:
author: Trudy Claspill
body: Hello [@SaadBinSaeed96](/t5/user/viewprofilepage/user-id/5413409)

To what specific vulnerability are you referring?

Do you have a document or notification that provides the CVE number?


Tags: data-center

jira-data-center
Scriptrunner Cloud Behaviours - Get issue status
Asked by andy.johnston:

I've been using behaviours on cloud, and I'd like to display a message on a particular issue, when it reaches a particular status.

But.... I'm struggling with the issue status. I've got it via trial and error on the API (see below)... but surely I can get it off context? But I'm just not sure of the syntax?

-----------------

I tried this:

//This didn't work returned argument of type "status" not assignable  
const issueStatusFieldVal = getFieldById("status");  
-----------------  
I got this working - but surely there must be a better way? Can someone help me to get the status straight from context.extension..... (I tried a few ways but didn't work)

//Get this issue key  
const context = await getContext();  
const thisIssueKey = context.extension.issue.key;  
//From the issue key get the status of the issue  
const requestTextString = "/rest/api/3/issue/" + thisIssueKey.toString() + "?fields=status"  
const res = await makeRequest(requestTextString);  
const thisIssueStatus = res.body.fields.status.name


Answers:
author: Kristian Walker _Adaptavist_
body: Hi Andy,

The context provided by Atlassian when a behaviour is very limited.

This means the way to get the status is to get the issue object using the key out of the context and to return the status out of this.

You could do this using the example code I have provided in the snippet file located [here](https://bitbucket.org/Adaptavist/workspace/snippets/7q6xRR).

I hope this answer helps.

Regards,

Kristian


Tags: behaviours

cloud

jira-cloud

scriptrunner
Could not find driver with class name: com.mysql.cj.jdbc.Driver
Asked by Mariano Edvardsson:

My company is redoing a JSM DC instance to a Debian 12 machine, we're having BIG trouble trying to get it to work.

(atlassian-servicedesk-5.17.1-x64.bin)

Whenever we try to setup the DB (Mysql 8.0) on the welcome page we get this error:

![Screenshot 2024-08-08 at 00.22.13.png](https://community.atlassian.com/t5/image/serverpage/image-id/340647iC1B4EB391BF64CBB/image-size/large?v=v2&px=999 "Screenshot 2024-08-08 at 00.22.13.png")

We have both Cloud and DC (legacy) servers. I'm more knowledgeable in Cloud, but I have spun up a few DC instances before and never ran into this problem.

I downloaded the Connector/J 9.0.0 and 8.4 from MySQL site, copied into

\`/opt/atlassian/jira/lib\` and nothing, I did \`dpkg -i mysql-connector-j_8.4.0-1debian12_all.deb\` and I get a good output but still nothing.

I even went as far as copying \`/usr/share/doc/mysql-connector-j\` to the Jira lib folder, restart Jira but still that damn error: Could not find driver with class name: com.mysql.cj.jdbc.Driver

Anyone know how to force Jira to read this Driver? And where can I get it from?

Thanks in advance.

\*\*\*\* EDIT \*\*\*\*

I just found some old Confluence setup guide that reads the following:

"

1. Stop Confluence.
2. Head to Database JDBC Drivers and download the appropriate driver for MySQL 8. The driver file will be called something like `mysql-connector-java-8.0.xx-bin.jar`

I do have a file reading mssql-jdbc-9.2.1.jre8.jar and that's it. Will look for some mysql-connector-java file ?


Answers:
author: Florian Bonniec
body: Hi [@Mariano Edvardsson](/t5/user/viewprofilepage/user-id/4480807)

You need add the connector into the lib directory then restart the application. Make sure that permission on the file are correct so JIRA will be able to read/load the file on startup.

You can download the driver from there

[Supported platforms \| Administering Jira applications Data Center 9.17 \| Atlassian Documentation](https://confluence.atlassian.com/adminjiraserver/supported-platforms-938846830.html)

Regards

comments: author: Mariano Edvardsson
body: Thank you! That worked!!


Tags: data-center

jira-data-center

jira-service-management

jira-service-management-server

mysql

server
MS Power Automate HTTP request not returning GET response body
Asked by Arun Unnikrishnan:

Purpose: When a user submits a request in Microsoft Forms, a jira issue should be created. I am trying to get the account Id using API.

I do have the required permissions and I get the response in Postman.

While trying with power automate, the response code is 200 but the response body is not returned.

![Screenshot 2024-08-08 083951.png](/t5/image/serverpage/image-id/340646i12B900FF49C8EBD6/image-dimensions/355x344?v=v2 "Screenshot 2024-08-08 083951.png")

I tried giving header like Content-type: Application/Json, Accept: Application/Json.

Any idea why the body is not returned?


Answers:
author: Arun Unnikrishnan
body: I figured out the solution for this. In the HTTP advanced body, there is an option called Authentication, supply username and API token and that's it!

![Screenshot 2024-08-09 065244.png](https://community.atlassian.com/t5/image/serverpage/image-id/340878i386CE518CB8D219C/image-dimensions/371x491?v=v2 "Screenshot 2024-08-09 065244.png")


Tags: api

automate

cloud

forms

jira-cloud

microsoft
The Import issue is missing, anyone can share how to do bulk import now.
Asked by Yong Wei Kee:

Hi there,

I am admin, where can i do bulk upload? I used to see the "import" beside the "eye"

![Untitled.png](/t5/image/serverpage/image-id/340639iF62C4D0657FC8183/image-size/large?v=v2&px=999 "Untitled.png")


Answers:
author: Trudy Claspill
body: Hello [@Yong Wei Kee](/t5/user/viewprofilepage/user-id/5334198)

A new import process is being rolled out. Try going to settings \> System \> External System Import.

comments: author: Yong Wei Kee
body: Thanks Trudy,

I found that after posted this question. Will this be available for non admin user?


author: Trudy Claspill
body: That is unclear. Various people have asked Atlassian directly about that over the past few months, and gotten various answers. See

<https://community.atlassian.com/t5/Jira-questions/CSV-Import-Roll-out-to-come/qaq-p/2637395>

I have not seen any truly clear documentation. If you look in the latest weekly update post all mentions of the Jira Import process refer to admins.

<https://confluence.atlassian.com/cloud/blog/2024/08/atlassian-cloud-changes-jul-29-to-aug-5-2024>

I also found this change request

<https://jira.atlassian.com/browse/JRACLOUD-83758>

Since you are on a paid subscription, you might want to reach out directly to Atlassian support to see if you can get more details. It would be wonderful if you share what you learn from them.

<https://support.atlassian.com/contact/#/>


Tags: cloud

jira-cloud
Regarding API
Asked by ServiceDesk Plus:

The end points listed below are throwing 404 errors in Jira cloud

1. /rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes to return a list of issue types given a project
2. {{/rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes/ {issueTypeId}}} to return a list of fields given a project and an issue type

Do we have any alternative end points that can be used instead?


Answers:
author: Daniel Ebers
body: Hi [@ServiceDesk Plus](/t5/user/viewprofilepage/user-id/1354080)

it is possible to gather the information from the link Nic posted back then.

1. List of issue types that present in the project  
2. List of fields in the given project and an issue type  

For Cloud this is specifically the one: GET /rest/api/2/project/{projectIdOrKey}  

![grafik.png](https://community.atlassian.com/t5/image/serverpage/image-id/235039i6874FA8828DEE529/image-size/large?v=v2&px=999 "grafik.png")

Cheers,  
Daniel


author: Nic Brough -Adaptavist-
body: Those don't look like valid calls to me. See <https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2> for the actual calls you can make.

comments: author: ServiceDesk Plus
body: Thanks will check it  

will those URLs work for On-premise


author: Nic Brough -Adaptavist-
body: Possibly, the Server REST API is different, but similar. I'd check the REST API docs for Server before trying it.


author: ServiceDesk Plus
body: I am trying to solve the issue posted here  

<https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html>  

Can you let me know the API that has to be used in both cloud and on-premise to get these details?  

1. List of issue types that present in the project

2. List of fields in the given project and an issue type


Tags: cloud
Trouble assinging an Assignee if I am not the Project creator.
Asked by Matt Rothwell:

My colleague made the Project.

I have added an issue to the board, and would like to assign the issue to the someone specific. If I try to assign to other coworkers... not a problem, but I am not able to assign the issue to the creator of the Project. This is a problem as this is the person who I want to assign the issue to.

Mike created the Project. I created an issue. Tried to assign issue to Mike. Cannot.

<br />

Help


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Matt Rothwell](/t5/user/viewprofilepage/user-id/4553294) and welcome to the community!

You have to see whether Mike has the "assignable" permission. Check to which role he belongs to, and then the role's permissions.


Tags: cloud
Creation of task in Project (issue type)
Asked by sanjay_sapra:

Hi Team ,

I have a program in JIRA . Now i want to create new task and subtask as related task .

Sample Flow : -

Project Name :- Testing Project

Program Name : Phase 1 \>\> task 1

\>\> subtask a , subtask b

\>\> Task 2

\>\> subtask c , subtask d

Program Name : Phase 2 \>\> task 3

\>\> subtask e , subtask f

\>\> Task 4

\>\> subtask g , subtask h


Answers:
author: John Funk
body: Hi Sanjay,

I would suggest making each program name an Epic. Then you can create the tasks under the Epic/Program and the sub-tasks under the tasks.

comments: author: sanjay_sapra
body: Hi John , Thanks for Input . Working as expected .


author: John Funk
body: [@sanjay_sapra](/t5/user/viewprofilepage/user-id/3805057) - If that took care of your question, can click on the Accept answer button above to close this one out? Thanks!


author: Fabian Lim
body: Hi [@sanjay_sapra](/t5/user/viewprofilepage/user-id/3805057)

Is your question regarding the creation if the program issue type?

Thanks


Tags: cloud
Jira Work Management Board display bug
Asked by Luis Laura:

Since 2 weeks ago, the Board section looks like weir. This is not extend on all the display.

I tryed clean the history, cookies, reinstall Edge and Firefox, and nothing.

Someone with the same problem?

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


Answers:
author: John Funk
body: Hi Luis - Welcome to the Atlassian Community!

I am not having this problem. I wonder if yours might be browser related. Have you tried with another browser? Or removing all of the extensions you have? Or opening in an incognito window?

Also, I do not see the board search box in your screenshot nor the Assigned to me and Due this week quick filters.

comments: author: Luis Laura
body: Hi John,

Thanks for your answer. I tryed with Microsoft Edge and Mozilla Firefox, and with incognito window, but it stays the same.

I will try removing all the extensions. :D

Thanks again, and if you have another idea, just tell me please xD


author: John Funk
body: Hey Luis - just following up. Looks like Atlassian rolled out some changes for boards which now include a minimum width of a card. But the cards should also automatically widen or shorten based on the monitor/screen size you are using.


author: Luis Laura
body: Hi [@John Funk](/t5/user/viewprofilepage/user-id/7148) , thanks for your answer. Today I tried to open my Jira account in other computer to review the Board section, but its not displaying correctly either.


author: John Funk
body: No, I think it's something Atlassian rolled out worldwide.


Tags: cloud
How can I disable, hide, or remove a Form after I create one in a Work Management project?
Asked by Matthew McClure:

I created a form in a Work Management project. I was just exploring the Forms feature, but it seems that the form was created immediately and published in a default configuration for any user that has Issue Create permission in the project. I don't actually want users to use the Form yet.

How can I disable, hide, or remove the Form?


Answers:
author: Brant Schroeder
body: [@Matthew McClure](/t5/user/viewprofilepage/user-id/4552286) Welcome to the Atlassian Community

There is no way to delete it once it is created. The good thing is no one except admins can see it unless you share it with them. <https://support.atlassian.com/jira-work-management/docs/collect-information-with-forms/>


Tags: cloud
Unable to access site administration and jira cloud
Asked by yogini:

I am the admin of Jira site shunyeka.atlassian.com. I am not longer able to access the jira nor can I login to site and access the projects. I have removed old users from my org and reduced the active users to under 10. Still not accessible.


Answers:
author: Nic Brough -Adaptavist-
body: I don't think you mean that site, I think you mean the Cloud Jira with a .net address, not a .com

That site has been suspended because of non-payment. You'll need to go to admin.atlassian.com and either pay the bill or renew the subscription on a free plan.


author: John Funk
body: Hi [@yogini](/t5/user/viewprofilepage/user-id/3617678) - You can get to the user management part of Jira to remove users but you can't see projects? Is that correct?


Tags: administration

jira-cloud

site
It does not allow to invite a user
Asked by TIC- Sistemas:

Hi, when I try to invite a user I get this message:

*we can't send any invitations because one or more accounts you have invited have been deactivated. Remove these accounts from your invitations and try again.*

But the user does not exist in the user list and is not unsubscribed.

thank you


Answers:
author: James Birmingham
body: Having the same issue here too, user has never been added to our account.


author: Ang?lica Luz
body: Hello [@TIC- Sistemas](/t5/user/viewprofilepage/user-id/3424982),

Thank you for reaching out to Atlassian Community!

This error seems to be related to a deactivated Atlassian account. Atlassian account can be deactivated by an org administrator in case they have verified the domain.

Can you please let us know if the users you are trying to invite are from a custom domain or if it's a gmail, outlook, yahoo?

Can you check if the users you need to invite can access <https://id.atlassian.com/>?

If possible, please, send us a screenshot of the error.

Kind regards,  
Ang?lica


Tags: cloud
Structure for Jira - how to calculate the difference between Work Estimate and Time Spent
Asked by Martin H?rri:

I would like to have a column with a formula which shows the difference between Time Estimated and Time Spent. I created a test task with an estimate of 2d, and I logged 3d of work on it.

Then I created a formula with the syntax Originalestimate - timespent, but the result is **-28800000** (instead of -1d). How do I format that field properly?


Answers:
author: Dima Kuzmin _ALM Works_
body: Hi Martin,

Dmitrii with ALM Works here.

You could set Format to Duration and enable "Work Time" checkbox.

You'd probably also want to use ABS function to get rid of the minus, if Time Spent \> Original Estimate.

Hope this helps!

Kind regards,

Dmitrii Kuzmin

ALM Works

comments: author: Martin H?rri
body: Brilliant, thanks a lot Dmitrii!


author: dakulig
body: Hi, is it possible to achieve this in Cloud version of Structure?


author: Dima Kuzmin _ALM Works_
body: Hi, at the moment it's not possible, because Formula feature is not available for Structure Cloud. But this is a high priority task for us, I will be happy to notify you when it's out!


Tags: cloud