youngmon/atlassian-qna huggingface dataset:
How do you create a custom report?
Asked by Amanda Hoyt:

As a project admin, I should be able to create a custom report. I was able to find the steps on how to create online. But I'm unable to. I don't see any option for "new report." Is this a bug?


Answers:
author: Danut M _StonikByte_
body: Hi [@Amanda Hoyt](/t5/user/viewprofilepage/user-id/5522747),

The article that you mentioned is applicable to Jira Service Management. I can confirm that the "New report" option is only available to service management projects.

But instead of a custom report, I strongly recommend creating custom dashboards. Dashboards are highly customizable, shareable, and you can choose from many gadgets offered by Jira or 3rd party apps.

Here are some example of custom dashboards:

* <https://community.atlassian.com/t5/App-Central/How-to-track-scaled-agile-SAFe-projects-in-Jira-with-Great/ba-p/1929694>
* <https://community.atlassian.com/t5/App-Central/8-gadgets-for-a-powerful-Scrum-dashboard-in-Jira/ba-p/1683063>
* <https://community.atlassian.com/t5/App-Central/An-effective-dashboard-for-Service-Desk-and-Customer-Support/ba-p/2360369>

Hope this helps.

Danut.

comments: author: Amanda Hoyt
body: Thank you.


author: Nicolas Grossi
body: [@Amanda Hoyt](/t5/user/viewprofilepage/user-id/5522747) is JSM istalled on your instance ?: <https://support.atlassian.com/jira-service-management-cloud/docs/what-are-custom-reports/>.

Nicolas


author: Nicolas Grossi
body: What type of project are using ? is it company managed ir team managed ?

Nicolas

comments: author: Amanda Hoyt
body: company managed


author: Nicolas Grossi
body: [@Amanda Hoyt](/t5/user/viewprofilepage/user-id/5522747) Welcome. Could you please elaborate ? What do you mean by custom report ?

Nicolas

comments: author: Amanda Hoyt
body: Jira offers a variety of reports you can select from for a project. Our team would like to create a custom report. Based on what we've found online, it is doable to create a custom report. And we found the steps to do so. However, when we try to add a "New Report" this option doesn't even show up. But it should based on the steps to create a custom report and the fact that I'm an admin.


author: Amanda Hoyt
body: <https://support.atlassian.com/jira-service-management-cloud/docs/create-a-new-custom-report/>


Tags: cloud

jira-cloud
I'm trying to rename a custom field (one 1 project) that is used by multiple projects
Asked by Maureen McKeon:

This is for data center only -

I have a custom field - "type of request" and it is used by multiple projects.

I tried to add a new context and rename the field to "Request type" but it still has the old field name


Answers:
author: Nicolas Grossi
body: [@Maureen McKeon](/t5/user/viewprofilepage/user-id/5522740) I think you have 2 choices:

- Rename the field name and will affect all the usages

- Create a new custom field with sme name and values maybe with context only for your new project

Nicolas


author: Kai Becker
body: Hi [@Maureen McKeon](/t5/user/viewprofilepage/user-id/5522740)

a field name can not be changed via a field context. This is simply for having different options per project in a single field.

If you need it to have another name you will have to create another field or go with the new name in every project, as [@Nicolas Grossi](/t5/user/viewprofilepage/user-id/676185) mentioned.

comments: author: Maureen McKeon
body: thanks for the info


author: Nicolas Grossi
body: [@Maureen McKeon](/t5/user/viewprofilepage/user-id/5522740) please mark the question as accepted if you agreed.

Nicolas


author: Carla Ann Rowland
body: Kai's answer is the correct one. If you make a second field with same name could cause problems sown the road..when you add field to screens not knowing which field id which. You would be constantly looking for numeric id of the one configured for the single project. Also if instance administrator runs the custom field optimiser jira will merge the field configuration under one numeric id and break any rules or ost functions etc.


author: Nicolas Grossi
body: [@Maureen McKeon](/t5/user/viewprofilepage/user-id/5522740) Welcome! Did you changed the field name ? and then reindex the DB ?

Nicolas

comments: author: Maureen McKeon
body: yes.. but it didn't change the name

I was able to modify other field names that were only used by 1 project


Tags: data-center

jira-data-center

jira-server

server
I was trying to download and open the attachments from server to local but unable to open the file
Asked by Bhargavi Vasa:

I was trying to download and open the attachments from server to local but unable to open the file . The file type same for all the attachment file

How can I download all the attachments and store it the call ?

Iam using Linux server


Answers:
author: Nicolas Grossi
body: [@Bhargavi Vasa](/t5/user/viewprofilepage/user-id/5136196) is the attachments path correctly ? I should be like data/attachments/{issue-key}

Nicolas

comments: author: Bhargavi Vasa
body: Yes it's like data/attachments/projectkey/10000/issuekey


author: Bhargavi Vasa
body: I took it from jira system--\> attachments which has path and other details like thumbnail enable/disable


author: Nicolas Grossi
body: [@Bhargavi Vasa](/t5/user/viewprofilepage/user-id/5136196)

Are you sure that the issue has attachments ? Attachments are stored in an "external" file system, you might take a look there based on the issue key.

Nicolas

comments: author: Bhargavi Vasa
body: Yes the issue has attachments and I was into data/attachments/pkey/issuekey/10000/

I was able to see the I'd of the attachment,tried copying it into tmp folder and then copied to local....the file type is "File"

How can I get attachments for all issues and store it in local

We are doing CSV export, as it only shows the attachment link with the attachment id we are trying to download from server


Tags: data-center

jira-data-center
Why is an automation targted at the remaining estimate is affecting the original estimate
Asked by Jacques Dussault:

On a scheduled automation nightly, on specific issues (JQL), the automation reduces the remaining estimate by 10% of the original estimate (and so by the end of a 10 days sprint, to 0h)

This is the JSON I use :

{ "fields": { "timetracking": { "remainingEstimate": "{{#=}} {{issue.timetracking.remainingEstimateSeconds}} /3600 - ({{issue.timetracking.originalEstimateSeconds}} \* 0.1) / 3600 {{/}}h" } } }

The issue is : for some reasons , it also edit the original estimate with the same rule and I can not find why it is doing that.

Any idea?![Screenshot 2024-06-17 144822.png](https://community.atlassian.com/t5/image/serverpage/image-id/330204iC73A325B03A0CA59/image-size/large?v=v2&px=999 "Screenshot 2024-06-17 144822.png")


Answers:
author: Jacques Dussault
body: After review by the Atlassian Support and Dev Team, there is actually a bug.

They provided simple workarounds .

You can find all the details here : <https://jira.atlassian.com/browse/AUTO-1328>


author: Bill Sheboy
body: Hi [@Jacques Dussault](/t5/user/viewprofilepage/user-id/4355621)

First thing I notice is your rule's Edit Issue action is trying to edit the Remaining Estimate field twice:

* once by selecting it from the dropdown list
* and once in the advanced edit with JSON.

Only one of those may be used in a single edit action for the same field.

Please try removing that and retesting to observe the impact, perhaps with some test issues. (You could temporarily modify your trigger's JQL to only include testing issues to help debug this symptom, and then revert it once fixed.)

Kind regards,  
Bill

comments: author: Jacques Dussault
body: Thank you for flaging the double edit. I corrected that. Sadly, that does not seem to be the reason why the original estimate gets updated too.

I'm already working on a restricted amound of issue (2) and theyr are both behaving the same way.


author: Bill Sheboy
body: Please post an image of the audit log details showing the rule execution and of the issue's change history showing the changes.

And, what changes in value do you notice in the Original Estimate field when the rule runs?


Tags: cloud

jira-cloud
How to set automation to add a label when something becomes 2 years old.
Asked by Manvi Oberoi:

I want to add a label that the item is now 2 years old using automation, Is it possible.


Answers:
author: Varsha Joshi
body: Hi Manvi,

Have you looked into creating automation with the updated field? On the next screen you should be able to add a label.

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

comments: author: Manvi Oberoi
body: Hi Varha, what should I set in

New trigger {#toc-hId--355072542}
---------------------------------


author: Varsha Joshi
body: You can have it scheduled or any field updated/or a new comment. Trigger can be based on your use case.


author: Nicolas Grossi
body: [@Manvi Oberoi](/t5/user/viewprofilepage/user-id/5522706) welcome! You might take a look to this documentation: <https://community.atlassian.com/t5/Jira-questions/Add-a-label-using-Automation-without-changing-removing-existing/qaq-p/1307797>

Nicolas

comments: author: Manvi Oberoi
body: Hi Nicolas, Thank you I checked that, but didn't find anything what I am looking for.


Tags: jira-unknown-hosting-type

unknown-hosting-type
JIRA automation license
Asked by Lucca Fernandes:

Good morning guys,

I would like to know if you know a way to hire JIRA's native automation licenses just to have more possibility of execution without having to change my plan to a more expensive version of JIRA


Answers:
author: Bill Sheboy
body: Hi [@Lucca Fernandes](/t5/user/viewprofilepage/user-id/5166305)

Short answer: I do not believe that is possible, although many have asked that question.

Please look here to learn about usage calculations and limits: <https://support.atlassian.com/cloud-automation/docs/how-is-my-usage-calculated/#What-are-my-usage-limits>

And so to get more automation execution "usage", one would need to:

* change their product plan / level,
* add more users (for Premium only), and / or
* add more products.

Kind regards,  
Bill


author: Michel Neeser
body: Hi [@Lucca Fernandes](/t5/user/viewprofilepage/user-id/5166305)

Actually, there is no such thing as only an "automation upgrade". You always have to upgrade the entire plan in order to expand the automation limits.

Hope this helps!

comments: author: Lucca Fernandes
body: Thanks Bro!


author: Michel Neeser
body: [@Lucca Fernandes](/t5/user/viewprofilepage/user-id/5166305) Glad I could help! Please consider accepting the answers that helped you, maybe they are helpful for others as well. Thank you!


Tags: cloud

jira-service-management

jira-service-management-cloud
Easy way to change project type
Asked by James Wiggins:

Project created with project type Software need to change and keep all history including the name of the project.


Answers:
author: Susanna Babayan
body: if you move the issues, delete the current project from the trash, you can keep the old name. but other than that, [@Michel Neeser](/t5/user/viewprofilepage/user-id/1828853) 's solution is the only one


author: Michel Neeser
body: Hi [@James Wiggins](/t5/user/viewprofilepage/user-id/5142034)

You can't change the project type after creating the project. However, you can create a new project and move all issues including their history to this new project.

What is the reason you want to change to another project type?


Tags: cloud

jira-cloud
Is there automation rule to check if a specified filed has been updated in X time?
Asked by Mathieu Fairfield:

I was going through the Automation rules possibilities to see if it was possible to apply a rule on an Issue depending on a field last update date, it doesn't seem to be available.   

Anyone here has applied something similar in their rules?  

Thanks


Answers:
author: Bill Sheboy
body: Hi [@Mathieu Fairfield](/t5/user/viewprofilepage/user-id/5522693) -- Welcome to the Atlassian Community!

Short answer: that may only be partially possible. I recommend describing what problem you are trying to solve (i.e., the "why do this") to help the community offer better suggestions.

Until we learn that...

There are some fields which work with the JQL CHANGED operator: <https://support.atlassian.com/jira-software-cloud/docs/jql-operators/#CHANGED> With that, a Scheduled Trigger rule could use JQL to test if something has changed / or not within a window of time. For example, checking if the Status has not changed for several days. But again that operator only works with a few fields.

The Field Value Changed trigger handles events for changes to a field. And so a rule could be created which saves the date / time of an update in a separate custom field, and then that could be checked separately with JQL, essentially doing what CHANGED does.

A brute force way to do this without the extra custom field is to call the REST API to get the issue's changelog, read / parse the issue changes, and then decide how to proceed. This may not work due to several possible rule limitations.

However...apparently not all field changes raise events for changes *that can be detected by rules*, and so those could not be detected with rules. Workarounds for those might be to try site webhooks.

Kind regards,  
Bill

comments: author: Mathieu Fairfield
body: Hey Bill!   

Here is the use case!   

I have automated tests on a software and whenever a crash is encountered, it searches my jira DB for the callstack. If it's found, it updates a custom field "Occurences" with +1 on the value.   

I would have used the last update date on the field to automatically close the issue after a week or 2.  

I hoped something similar to"updatedDate" could be used on a field ID...


author: Aron Gombas _Midori_
body: Like Bill suggested, introduce a date-time type custom field "Foobar" that stores the last update timestamp of the "Occurrences" field. Every time when you update "Occurrences", also update "Foobar" to the current date!

You can then use "Foobar" like any other field in JQL, using date-time arithmetics.

That's it.


author: Mathieu Fairfield
body: In this case, Changed can't be used. I suppose i'll have to script it and poke the api.


author: Bill Sheboy
body: Although the CHANGED operator cannot be used for other fields, if you have saved a date / time custom field when the field changes, JQL may still be used.

For example...

```
project = myProjectName
  AND myCustomFieldLastUpdated > startOfDay()?
```

Where myCustomFieldLastUpdated is the date / time value refreshed by that other rule I described.


Tags: cloud

jira-cloud
How to get a numerical value and convert it to hours?
Asked by Sam:

Hi All,

I am trying to copy a numerical value from the story over to the sub-task issue and have that convert to hours.   

If the story's LOE field is updated -\> copy that number to the subtask in hours over to the Original estimate field.   

Here is my rule, but I am only getting errors and no results whatsoever:

![Copy LOE to Sub-Task in Hrs.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/330200iE8E12DE03F80A1D4/image-size/large?v=v2&px=999 "Copy LOE to Sub-Task in Hrs.jpg")


Answers:
author: Bill Sheboy
body: Hi [@Sam](/t5/user/viewprofilepage/user-id/5500195)

The smart value in your edit is incorrect. If you want the field from your custom field, use only the trigger issue prefix:

```
{{triggerIssue.yourfield}}
```

Next, the remaining syntax of your field edit is puzzling. What are the **name** and **type** of the field in your Story? The syntax you show looks more like a cascading field rather than a numeric field.

If it is just a number, there is no need for the sum as it is just a number.

Kind regards,  
Bill

comments: author: Sam
body: This seems to work, but it defaults my time entered on the original estimate to min. How can I convert this to hours?   

So far I have tried this, but no luck:   

{{#=}}{{triggerIssue.LOE.divide(60)}}


author: Bill Sheboy
body: What are the units of measure of your source, custom field: seconds, minutes, etc.

My understanding is the built-in, time tracking values, available to rules, are in seconds. When you divided by 60 that gives a value in minutes.

And so you could divide by 3600 instead or add a units of measure of h (for hours) at the end of setting the field.


author: Sam
body: Hi, it defaults to minutes. I have tried the below, but still get no results. I would like to get the LOE which is a number convert to hours. Please let me know where I am wrong:  

{{#=}}{{triggerIssue.LOE.divide(3600)}}


author: Bill Sheboy
body: You may either:

Add an h at the end to set as hours, or

Enter the number in the original estimate as seconds and it will convert correctly.


author: Sam
body: This did the trick:  
from number to hours.   
{{#=}}{{triggerIssue.LOE}} \* 60{{/}}  

your first answer though help me get to this place. Thanks


Tags: data-center

jira-data-center

timetracking
In the Assets plugin, you need to add a new status to all objects, in attributes
Asked by Oleksandr Holiiad:

Is there any standard solution to add a specific value to the "select list", an additional "status" value for an "attribute" in the jira "assets" plugin for many objects at once ?

Or if there are no ready-made solutions, can someone suggest a working ScriptRunner example for this ?


Answers:
author: Mikael Sandberg
body: Hi [@Oleksandr Holiiad](/t5/user/viewprofilepage/user-id/5522320),

Welcome to Atlassian Community!

After you added the new status, go to the object list view, from here you can do a bulk edit of the listed objects.

comments: author: Oleksandr Holiiad
body: Hi.

And how can this be done en masse, rather than entering the attributes of each object ![?????? ?????? ? 2024-06-18 10-26-25.png](https://community.atlassian.com/t5/image/serverpage/image-id/330300i43CB6F6A523469BB/image-size/large?v=v2&px=999 "?????? ?????? ? 2024-06-18 10-26-25.png")?


author: Mikael Sandberg
body: That is the attribute view, you need to go to the object view, and from there select the list view, see [this KB](https://confluence.atlassian.com/servicemanagementserver/searching-for-objects-1044784579.html) for more information.


author: Oleksandr Holiiad
body: If I understood you correctly, you are writing about changing the currently selected statuses (from the prescribed list in the attributes) in already created objects, through search.

On the contrary, I am interested in the mass addition of new status values:

![?????? ?????? ? 2024-06-18 19-02-54.png](https://community.atlassian.com/t5/image/serverpage/image-id/330440i28A55015FB22CC22/image-size/large?v=v2&px=999 "?????? ?????? ? 2024-06-18 19-02-54.png")

in the attributes (for example add NEW_Status_1, NEW_Status_2):

![?????? ?????? ? 2024-06-18 19-13-14.png](https://community.atlassian.com/t5/image/serverpage/image-id/330441i074D536BDC32E356/image-size/large?v=v2&px=999 "?????? ?????? ? 2024-06-18 19-13-14.png")

for different object types (for example, all MKT and MKG):

![?????? ?????? ? 2024-06-18 19-13-32.png](https://community.atlassian.com/t5/image/serverpage/image-id/330442i9FD0193917DEF0D6/image-size/large?v=v2&px=999 "?????? ?????? ? 2024-06-18 19-13-32.png")


Tags: data-center

jira-data-center
Can send a response to stop receiving data on a webhook?
Asked by aperez:

Hi,

I'm using webhooks with Jira cloud. Users install an app that I provide and after that, webhook is enabled and they send data to my app backend.

How I can disconnect them? I know that from the point of view of the user, they can stop sending data to the [webhook](https://community.atlassian.com/t5/Jira-questions/Is-it-possible-to-stop-sending-webhook-events-for-a-particular/qaq-p/697320) or they can uninstall the app, so the webhook is disconnected.

However, if the user didn't uninstall the app but I don't want to still receive their data in the webhook, is there any way to tell atlassian API to do that? From [doc](https://developer.atlassian.com/cloud/jira/platform/webhooks/#response-codes) it says that everything else than a 200 is considered something to retry, but there is nothing like to send a response back to atlassian to mark that webhook as not available.

Thansk in advance


Answers:
author: Bill Sheboy
body: Hi [@aperez](/t5/user/viewprofilepage/user-id/5522649) -- Welcome to the Atlassian Community!

I am curious why you would do that for a customer who still has the app installed, and so likely has an understanding it will continue to function.

Regardless...I suggest checking the [developer community](https://community.developer.atlassian.com/) and having a conversation with your Atlassian marketplace contact about what you are trying to achieve, and why.

Kind regards,  
Bill

comments: author: aperez
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

Thanks!

Problem is that it was a customer before, but not now. Customer didn't execute the uninstall workflow but our contractual relationship is over, so we are receiving data that we are rejecting -because we deleted their application information in our side- but in customer side didn't care to uninstall the application.


Tags: cloud

jira-cloud

webhook
getWorklogs always returns empty array
Asked by Manan:

Attempting to get the work log of an issues using getWorklogs() but it always return empty array even thou the issues have worklog. Dumping the toString for issues display the below:

worklogs=\[\],

is there a special way to get the workLog for a given task.

Issue issueFromJira;

...

Iterable worklogs = issueFromJira.getWorklogs();

System.out.println("getWorklogs Size : " + Iterables.size(worklogs));


Answers:
author: Florian Bonniec
body: Hi [@Manan](/t5/user/viewprofilepage/user-id/2680343)

You may have to use Worklogmanager.

[WorklogManager (Atlassian JIRA 7.1.0 API)](https://docs.atlassian.com/software/jira/docs/api/7.1.0/com/atlassian/jira/issue/worklog/WorklogManager.html#getByIssue-com.atlassian.jira.issue.Issue-)

Regards


Tags: jira-server

server
Cannot expand/create task from the list
Asked by Edoardo Cavallini:

Hi,

I am setting up my project, I did the first demo and it was ok, I was able to expand/collapse the issues, and create with "+" button.

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

Then I created another project, to check the how to handle tasks in different projects but with the same board.

The problem is that in the new project I do not have the same view in the list, I cannot collapse/expand and "+" button

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

I see the parent in the "# Key " column that I did not see before.

I have no clue about what I did differently, any idea?

Thanks


Answers:
author: Mohanraj Thangamuthu
body: Hello, Good day. This is Kanban template or scrum board template. Also did you change the board JQL query or you are using the default filter query on the board ?. Thanks

So to understand, both project issues are shown on single board ?


Tags: cloud

jira-cloud
Automation smart values
Asked by Daniel In:

When using {{smart values}} condition, is there a specific "Condition" I can use to look for specific text values?

![smartValue.PNG](/t5/image/serverpage/image-id/330192i9B0C2EB737EBDCBF/image-size/large?v=v2&px=999 "smartValue.PNG")


Answers:
author: J_ Caldwell
body: You are there. You'll need to craft a regular expression to identify the text value you are looking for.   

<https://confluence.atlassian.com/jirakb/extract-content-out-of-description-and-summary-with-regex-and-automation-1157495262.html> is an example


Tags: cloud

jira-cloud